Worden.lee has uploaded a new change for review.

Change subject: (bug 44776) protect JS encoding of $wgFileExtensions
......................................................................

(bug 44776) protect JS encoding of $wgFileExtensions

If $wgFileExtensions contains values that are in $wgFileBlacklist,
when Setup.php uses array_diff to remove them it makes $wgFileExtensions
into an array that the Xml class will encode as an Object rather than
Array.
This breaks the extension processing in UploadWizard's JS code.  To fix
this, use array_values to clean up the array before encoding.

Change-Id: I46ff25baee72baafe0ff38d3e77fcb6a26f50090
---
M UploadWizard.config.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard 
refs/changes/92/48092/1
--
To view, visit https://gerrit.wikimedia.org/r/48092
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I46ff25baee72baafe0ff38d3e77fcb6a26f50090
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Worden.lee <[email protected]>

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

Reply via email to