From c780168f9f9e368586921f63845b890c14eaeebf Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 10 Oct 2010 14:39:16 +0000 Subject: [PATCH] Follow up r74135 removing the globals, too. htmlescape the global. --- includes/db/DatabaseMssql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/db/DatabaseMssql.php b/includes/db/DatabaseMssql.php index 8be7ebbc8d..1284ce5461 100644 --- a/includes/db/DatabaseMssql.php +++ b/includes/db/DatabaseMssql.php @@ -815,7 +815,7 @@ class DatabaseMssql extends DatabaseBase { } function setup_database() { - global $wgVersion, $wgDBport, $wgDBuser; + global $wgDBuser; // Make sure that we can write to the correct schema $ctest = "mediawiki_test_table"; @@ -825,7 +825,7 @@ class DatabaseMssql extends DatabaseBase { $SQL = "CREATE TABLE $ctest (a int)"; $res = $this->doQuery( $SQL ); if ( !$res ) { - print "FAILED. Make sure that the user \"$wgDBuser\" can write to the database\n"; + print "FAILED. Make sure that the user " . htmlspecialchars( $wgDBuser ) . " can write to the database\n"; dieout( "" ); } $this->doQuery( "DROP TABLE $ctest" ); -- 2.20.1