with
  php_value magic_quotes_gpc 1
in the default .htaccess, configuration variables containing quotes (such as "site_footer") are incorrectly serialized (the serialization process includes quote characters caused by "magic_quotes_gpc 1" into the string length count). this causes garbage deserialized output (the serialized string length field is greater than the actual string length, so the rest gets filled with garbage).

what do we need "magic_quotes_gpc 1" for? i would strongly recommend to remove this from .htaccess / set it to 0. see also http://www.php.net/manual/en/configuration.php#22340

Comments

Anonymous’s picture

I agree, but someone has to go through all of Drupal to make sure there are no side effects. I think we can solve a lot other issues by disabling it. I think the biggest challenge will be in all place that use check_* functions as they do some slash manipulations that might need altering.

marco’s picture

I agree.
btw I had a problem with usernames with quotes (not uncommon in Italian) appearing wrong in confirm emails, which was solved turning off magic_quotes_gpc.
I think the only thing to check is that every db_query() correctly checks every var, which is required anyway to prevent sql injection (through commenting, for example).

ax’s picture

Priority: Normal » Critical