[Mediawiki-l] Re: Problem with magic_quotes_runtime
bernhard.walle at gmx.de
Mon Feb 14 12:11:40 UTC 2005
* Bernhard Walle [14.02.2005 11:18]:
> * Brion Vibber [14.02.2005 02:51]:
>>Bernhard Walle wrote:
>>>I run MediaWiki 1.4beta6 on a Linux PHP server. The magic_quotes_runtime
>>>variable is set to "1" (cannot change this). Is it possible that this
>>>causes problemes? ' is shown as \' and " as \".
>>Having magic_quotes_runtime will cause EVERYTHING to fail. This is the
>>most incredibly stupid option in PHP and no one should ever use it.
>>Here's what it does:
>> If magic_quotes_runtime is enabled, most functions
>> that return data from any sort of external source
>> including databases and text files will have quotes
>> escaped with a backslash. If magic_quotes_sybase is
>> also on, a single-quote is escaped with a single-
>> quote instead of a backslash.
>>This will automatically corrupt all data coming from the database or the
>>filesystem, which seems like a pretty bad thing to do.
>>Note that there is a set_magic_quotes_runtime() function which you may
>>be able to use to turn it off at runtime:
Thanks, it works. I had to reinstall the wiki.
More information about the MediaWiki-l