Random Chitchat 2012-2016
And now...

I am using Visual Studio 2013 with Windows 8.1!

FlashyBig Grin

--

Thou art outdated!
Thanks given by:
Buildserver was fixed a while back.

Added a HTML escaping function, if xoft approves. If you merge, I'll document in APIDump Smile
Thanks given by:
What does the HTML escaping function? What can you do with it?
Thanks given by:
You can take anything and dump it into webadmin without fear of XSS or random elements appearing in the middle of the page.
Thanks given by:
For some reason the function doesn't seem to work - it gives the error of first argument is class cwebadmin not cwebadmin. Check out the latest rev of core to check.
Thanks given by:
That's because you exported the function wrong - with the signature it had, you'd need to pass a real cWebAdmin object as its first argument (cRoot:Get():GetWebAdmin():GetHTMLEscapedString() ).
I've fixed the C++ signature for you so that it works as written in the Core (makes sense - don't need a cWebAdmin object).
Thanks given by:
Thanks Smile

So basically adding static in front of the definition is what you need?
Thanks given by:
Yes. "static" means that you don't need an actual instance in order to call the function.

Still, I'm thinking about moving that function to the globals and changing the name to HTMLEscape(), so that it's shorter.
Thanks given by:
Quick patch to make 1.6.4 with new launcher work (can't commit to the SVN anymore):

http://pastebin.com/BG4uxHfb

Not sure if this is all that's needed, but minecraft protocol wiki page doesn't mention any changes since 1.6.2
Thanks given by:
Heh, someone just woke up from their winter sleep Smile
We've moved the code development to GitHub some two months ago, and 1.6.4 is already long supported.
Thanks for the effort, though.

https://github.com/mc-server/MCServer
Thanks given by:




Users browsing this thread: 12 Guest(s)