From 124299758ca7454561118f466a0470905758924f Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 13 Apr 2011 05:42:02 +0200 Subject: update to MediaWiki 1.16.3 --- maintenance/updaters.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'maintenance') diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 81c260fc..594d4d78 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1520,6 +1520,8 @@ function do_postgres_updates() { else { $search_path = $conf['search_path']; } + + $safeuser = $wgDatabase->quote_ident($wgDBuser); if( strpos( $search_path, $wgDBmwschema ) === false ) { wfOut( "Adding in schema \"$wgDBmwschema\" to search_path for user \"$wgDBuser\"\n" ); $search_path = "$wgDBmwschema, $search_path"; @@ -1530,7 +1532,7 @@ function do_postgres_updates() { } $search_path = str_replace( ', ,', ',', $search_path); if( array_key_exists( 'search_path', $conf ) === false || $search_path != $conf['search_path'] ) { - $wgDatabase->doQuery( "ALTER USER $wgDBuser SET search_path = $search_path" ); + $wgDatabase->doQuery( "ALTER USER $safeuser SET search_path = $search_path" ); $wgDatabase->doQuery( "SET search_path = $search_path" ); } else { @@ -1546,7 +1548,7 @@ function do_postgres_updates() { $value = $goodconf[$key]; if( !array_key_exists( $key, $conf ) or $conf[$key] !== $value ) { wfOut( "Setting $key to '$value' for user \"$wgDBuser\"\n" ); - $wgDatabase->doQuery( "ALTER USER $wgDBuser SET $key = '$value'" ); + $wgDatabase->doQuery( "ALTER USER $safeuser SET $key = '$value'" ); $wgDatabase->doQuery( "SET $key = '$value'" ); } else { @@ -1970,8 +1972,8 @@ function do_postgres_updates() { 'ctype' => 'U', 'mw_version' => $wgVersion, 'pg_version' => $version, - 'sql_version' => '$LastChangedRevision: 62877 $', - 'sql_date' => '$LastChangedDate: 2010-02-24 01:13:36 +1100 (Wed, 24 Feb 2010) $', + 'sql_version' => '$LastChangedRevision: 84593 $', + 'sql_date' => '$LastChangedDate: 2011-03-23 23:14:46 +1100 (Wed, 23 Mar 2011) $', ) ); return; } -- cgit v1.2.2