-
MODX Staff
- 730 Posts

oh boy, I think I need to switch to a new brand of coffee
I have the escaping backslashes happening on saving documents in the manager on another site now...
How can i turn off magic_quotes_gpc?
Where can i find this?
-
MODX Staff
- 730 Posts
Dear all, I have this very same issue.
I can’t get it to work, I still get all the slashes in the code, or an Internal Server Error 500....
I have PHP 5.3.6 and ModX Evolution 1.0.5
What settings do I need in my .htaccess to make this work properly ?
Tnx !!
-
MODX Staff
- 730 Posts
In the link above your post, it has what you need for .htaccess
php_flag magic_quotes_gpc Off
Note that once this setting is turned off, it will not magically remove the backslashes that may have been added to your content as you saved stuff. You’ll have to manually remove the backslashes, and hopefully with that in your .htaccess, the setting will actually get turned off any subsequent saves won’t add slashes again.
-
MODX Staff
- 730 Posts
I recommend taking it up with your hosting provider. You should be able to set that flag in your .htaccess but it’s also not unheard of for that to cause a server error. It’s likely their configuration, and they’ll need to tell you how to turn off magic_quotes. (Hopefully you can! If you can’t I’d seriously think about looking for another provider.)