(bug 34521) Returning to the previous page after logging in loses any array-valued...
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 9 Mar 2012 23:27:28 +0000 (23:27 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 9 Mar 2012 23:27:28 +0000 (23:27 +0000)
RELEASE-NOTES-1.20
includes/WebRequest.php

index afa814d..9abc6e0 100644 (file)
@@ -45,6 +45,8 @@ production.
 * (bug 34929) Show the correct diff when a section edit is rejected by the spam 
   filter
 * (bug 15816) Add a switch for SETting the search_path (Postgres)
+* (bug 34521) Returning to the previous page after logging in loses any array-
+  valued parameters in the query string
 
 === API changes in 1.20 ===
 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
index 33376cf..879edf6 100644 (file)
@@ -535,7 +535,7 @@ class WebRequest {
 
                $retVal = array();
                foreach ( $names as $name ) {
-                       $value = $this->getVal( $name );
+                       $value = $this->getGPCVal( $this->data, $name );
                        if ( !is_null( $value ) ) {
                                $retVal[$name] = $value;
                        }