Let's finally remove magic quotes from Vanilla!
Browsing through the core library, I found some crude ways of dealing with PHP's magic quotes.
E.g. Gdn_Form uses stripcslashes instead of stripslashes to deal with magic quotes in form values. Also, it only does this if the form name has a prefix identical to the form's associated table name AND only if the default InputPrefix of the form had been manually changed AND only if those values are found on the first or second nesting level of the $_REQUEST array. In all other cases, it does not strip slashes added by magic quotes.
The PHP manual says: This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. Since Vanilla 2.2 requires PHP 5.3, I would say: let's remove all this faulty and error prone code from the Vanilla codebase!
What do you think?
Having magic quotes enabled breaks view counts anyway so yes, removing this should be safe.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
this was filed 1 1/2 years ago - not sure how it relates to current versions of vanilla.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Sounds like a safe and sober change to make.
Made a pull request: https://github.com/vanilla/vanilla/pull/2956