Page MenuHomePhabricator

wfArrayToCGI breaks associative arrays
Closed, ResolvedPublic

Description

uses array keys

Example: SemanticMediaWiki with a language != English
Special:Ask redirects to Special:<Localized Ask> and omits array keys. (e.g. foo[bar]=baz is turned into foo[]=baz)

See this mail:
http://www.mail-archive.com/semediawiki-devel@lists.sourceforge.net/msg01922.html

wfArrayToCGI is responsible for this.

One fix would be to always use the key, however I think this would turn foo[]=baz into foo[0]=baz (which is not a nice behavior, it should just stay the same). See patch.


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz22989

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:04 PM
bzimport set Reference to bz22989.
bzimport added a subscriber: Unknown Object (MLST).

Fixed the SemanticMediaWiki example with a workaround in r64351.

However, that does not resolve this bug, it might happen somewhere else as well.

*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*