"Dantman" posted a comment on MediaWiki.r105809.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/105809#c27401

Commit summary for MediaWiki.r105809:

Update wfArrayToCGI and wfCgiToArray:
- 'foo' => '' now outputs "&foo=" instead of the key being omitted
- 'foo' => null and 'foo' => false now omit the key instead of outputting 
"&foo="
- Added a test to make sure that 'foo' => true outputs "&foo=1"
- Fixed a php notice caused when passing a =value-less bit like "&qwerty" to 
wfCgiToArray by treating it like php and extracting it as 'qwerty' => ''
- Updated tests

Dantman's comment:

<source lang=javascript>empty=&some=1 => { empty: '', some: '1' } => 
empty=&some=1 => { empty: '', some: '1' } => ...</source>

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to