XereoNet / SpaceBukkit

SpaceBukkit - Web administration, the awesome way!
http://spacebukkit.xereo.net/
51 stars 19 forks source link

Config editor breaking configurations #205

Open minthost opened 11 years ago

minthost commented 11 years ago

Location: Control panel, Plugins Section, Plugin configuration Browser: Chrome Webserver: Apache 2 SpaceBukkit version: 1.2.1 Minecraft Server: Regular, recommended Bukkit OS (Web):Apache 2.2, Debian Squeeze

SpaceModule #81 RTK R10 14.5

It turns 'special characters', an apostrophe for example, into some weird character code. Like, if I make changes in plugin configuration, make prefix "[&aGuest&f]" for example, it turns it to ?quot;[?amp;aGuest?amp;f]?quot; and saves it that way. Also, it replaces ALL of these special characters (slashes included) into weird combinations and saves them, whis is breaking the configuration file, so it makes that editor unusuable.

Note: I replaced & characters with ?, cause GitHub automatically showed the right form, [&aGuest&f], instead of combinations what is shown in configuration editor.

tyteen4a03 commented 11 years ago

That would be some escaping function escaping that field. Possibly Cake-related but I'm not sure.

Antariano commented 11 years ago

This should be easy enough to fix by modifying the spacebukkit php api to not escape inputs if a boolean is set to true.