From 419129ae672b4d09e1cfccb9a452cca29ad30fa1 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 14 Aug 2012 11:51:26 +0200 Subject: [PATCH] Follow-up I47412b67 (dde8471): convert string query to array If we detect and warn that the $query parameter is in an incorrect format, we may as well convert it to the correct one. Change-Id: Ief137ab758c65ec562c2a523f76b1a4f8c2617b5 --- includes/Linker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Linker.php b/includes/Linker.php index 9949aa85a0..5b1f0ff082 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -202,6 +202,7 @@ class Linker { if( is_string( $query ) ) { // some functions withing core using this still hand over query strings wfDeprecated( __METHOD__ . ' with parameter $query as string (should be array)', '1.20' ); + $query = wfCgiToArray( $query ); } $options = (array)$options; -- 2.20.1