Fix for [ 988901 ] (install) database password not escaped in LocalSettings.php
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 5 Aug 2004 07:14:36 +0000 (07:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 5 Aug 2004 07:14:36 +0000 (07:14 +0000)
commite91729b46fe9a9f4058a2f118c61a652b3949e3e
tree555539eff2f31df7b952dd5c7ac036b965ef345d
parent882eb838b61b606e067d738a54875b6be58fd4d6
Fix for [ 988901 ] (install) database password not escaped in LocalSettings.php

addslashes() is not quite correct for PHP double-quoted string literals.
Created an escapePhpString() function which should cover the right bits.
See http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.double
config/index.php