And now...
I am using Visual Studio 2013 with Windows 8.1!
Flashy
--
Thou art outdated!
I am using Visual Studio 2013 with Windows 8.1!
Flashy
--
Thou art outdated!
Random Chitchat 2012-2016
|
And now...
I am using Visual Studio 2013 with Windows 8.1! Flashy -- Thou art outdated!
10-20-2013, 02:44 AM
Buildserver was fixed a while back.
Added a HTML escaping function, if xoft approves. If you merge, I'll document in APIDump
10-20-2013, 07:18 PM
What does the HTML escaping function? What can you do with it?
10-20-2013, 07:21 PM
You can take anything and dump it into webadmin without fear of XSS or random elements appearing in the middle of the page.
10-21-2013, 08:18 PM
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.
10-21-2013, 09:23 PM
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).
10-22-2013, 01:11 AM
Thanks
So basically adding static in front of the definition is what you need?
10-22-2013, 01:35 AM
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.
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
10-22-2013, 05:17 PM
Heh, someone just woke up from their winter sleep
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 |
« Next Oldest | Next Newest »
|