Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2010 at 14:49 UTC
Updated:
2 Jun 2011 at 09:31 UTC
Just moved a Drupal Rc1 site to production, I got a really weird error. I started getting slashes every where, then after a bit of pulling hair out I remembered that hey this is this magic quote rubbish.
Drupal is not checking this correctly.
Comments
Comment #1
joachim commentedCould you give more detail please?
Where do you see slashes? And what do you mean by magic quotes?
Comment #2
roam2345 commentedThe PHP variable magic quote's if it is enabled drupal no longer checks that it is disabled on the status report page.
Comment #3
joachim commentedFrom the PHP manual:
> This feature has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.
I suspect the answer here is that you should not run Drupal with mq enable.
Comment #4
bojanz commentedBut why is Drupal not giving a warning anymore?
We require PHP 5.2, where magic quotes aren't deprecated, and we expect it to be off...
I see that we have this in htaccess:
so I guess that part is not really working for jucallme.
Comment #5
roam2345 commented@bojanz that was my case. I had developed everything on a php 5.3 environment. My hosting company is only using php 5.2. So when I had moved everything over. It just had slashes every where.
All I expected drupal to say was hey your php environment is wrong buddy.
I dought it has anything to do with this bug but when I checked this in php.info it said it was off. Only when I forced an over-rider in my php profile was the variable correctly switched off.
Comment #6
bojanz commentedSo wait, phpinfo() said that magic quotes was off, but you still got the wrong behaviour? In that case, what exactly can Drupal do? Not much...
Comment #7
cosmicdreams commentedComment #8
bkosborneNot sure if this is related to me...
I'm on a server running php 5.2.9 and I'm getting slashes everywhere. Magic quotes are turned off, as confirmed in php_info. This happens on a fresh install of D7 RC4. Tried a fresh install of D6.20 with no problem. Totally confused, not sure what else to do and it's driving me nuts!
Comment #9
bdragon commentedDo you by any chance have a poorly configured mod_security running?
Comment #10
bkosborneNot sure, there is nothing about mod_security in my php_info
Comment #11
damien tournoud commentedSee http://drupal.org/node/945308#comment-3620138
Comment #12
chx commentedBased on Damien's comment.