Hello,
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 ".
Can somebody confirm this? Will this be fixed in future versions? Thanks!
Regards, Bernhard
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: http://www.php.net/manual/en/function.set-magic-quotes-runtime.php
If that doesn't work, contact your system administrator and ask that they reconsider their bizarre practice of corrupting all your data.
-- brion vibber (brion @ pobox.com)
Hello,
* 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: http://www.php.net/manual/en/function.set-magic-quotes-runtime.php
Thanks.
But setting set_magic_quotes_runtime(0) fails in LocalSettings.php. Do you know why that may not work?
Regards, Bernhard
Hello,
* 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: http://www.php.net/manual/en/function.set-magic-quotes-runtime.php
Thanks.
Thanks, it works. I had to reinstall the wiki.
Regards, Bernhard
mediawiki-l@lists.wikimedia.org