Add array support to wfArrayToCGI(): when receiving parameters in the form of &foo...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 24 May 2008 21:54:57 +0000 (21:54 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 24 May 2008 21:54:57 +0000 (21:54 +0000)
commita8cfb856c44d9eb6ac43be8c9bb975897bb8b4e8
treedcfa8fd706cfaf92c33c3d012de3b2514bcdd5ba
parent9c700dad77d3d60c033ec56241efbdd81beaa795
Add array support to wfArrayToCGI(): when receiving parameters in the form of &foo[]=bar&foo[]=baz, PHP automatically sets $_GET['foo'] = array(bar, baz); When feeding the original query back to wfArrayToCGI(), it used to choke on that. Now wfArrayToCGI() actually converts array('bar', 'baz'); back to the &foo[]=bar&foo[]=baz form.
includes/GlobalFunctions.php