(bug 17366) fix for r46840: Xml::encodeJsVar() already escapes and quotes $conf-...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 5 Feb 2009 11:59:02 +0000 (11:59 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 5 Feb 2009 11:59:02 +0000 (11:59 +0000)
config/index.php

index b1485c0..83ead15 100644 (file)
@@ -1544,7 +1544,7 @@ if( count( $errs ) ) {
 </div>
 </form>
 <script type="text/javascript">
-window.onload = toggleDBarea('<?php echo htmlspecialchars( Xml::encodeJsVar( $conf->DBtype ) ); ?>',
+window.onload = toggleDBarea( <?php echo Xml::encodeJsVar( $conf->DBtype ); ?>,
 <?php
        ## If they passed in a root user name, don't populate it on page load
        echo strlen(importPost('RootUser', '')) ? 0 : 1;