"Krinkle" posted a comment on MediaWiki.r112856.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/112856#c31725
Commit summary for MediaWiki.r112856:
[CategoryTree] Fix "bad json errors on options= {":" that are populating
wmf error logs
* Only occurred on category trees produced by <categorytree>. The category
trees dynamically created when expanding the [+] toggle in the subcategory list
on a category page were not affected (since those don't have data-ct-options
attributes and thus JS uses the default via mw.config.get(
'wgCategoryTreePageCategoryOptions' ), which wasn't double escaped)
* escapeTagsOnly escapes & to "
* Xml::openElement does normal attribute escaping, assuming unescaped input
Before:
<div class=" CategoryTreeTag" data-ct-mode="0"
data-ct-options="{&quot;mode&quot;:0,&quot;hideprefix&quot;:20,&quot;showcount&quot;:false,&quot;namespaces&quot;:false}">
<div class="CategoryTreeTag" data-ct-mode="0"
data-ct-options="{"mode":0,"hideprefix":20,"showcount":false,"namespaces":false}">
Krinkle's comment:
"Before: ... *After:* ..."
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview