dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d996871
)
Follow-up I47412b67 (dde8471): convert string query to array
author
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Tue, 14 Aug 2012 09:51:26 +0000
(11:51 +0200)
committer
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Tue, 14 Aug 2012 09:51:26 +0000
(11:51 +0200)
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
patch
|
blob
|
history
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
9949aa8
..
5b1f0ff
100644
(file)
--- 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;