[Mediawiki-l] Re: Problem with magic_quotes_runtime
bernhard.walle at gmx.de
Mon Feb 14 10:18:45 UTC 2005
* 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:
But setting set_magic_quotes_runtime(0) fails in LocalSettings.php. Do
you know why that may not work?
More information about the MediaWiki-l