https://bugzilla.wikimedia.org/show_bug.cgi?id=22989

           Summary: wfArrayToCGI breaks associative arrays
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=7252)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=7252)
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/[email protected]/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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to