Go to file
grunny c006c42035 (CE-3844) Refactor fix for PI and parser tag fix
A security fix from MW core added quotes to the Parser's strip tag
markers in order to prevent an XSS vulnerability. When this was deployed
PIs and our Wikia tag extensions broke in Mercury because ArticlesAsJson
JSON encodes the parser output in the ParserAfterTidy, but then PI and
the tag extensions were manually replacing the Parser tag strip markers
on the already JSON encoded string within their own ParserAfterTidy methods
(which were always run after the ArticlesAsJson method). This meant that the
strip marker had the quote escaped with a backslash in the encoded string,
so the string replacements failed.

This change follows the previous quick and dirty fix by moving the replacements
in PI and the tag extensions to just before ArticlesAsJson encodes the output.
Which also removes the need from before the fix in #10701 to JSON encode the
parser output of the tags that will be replaced into the text.
2016-06-17 20:57:12 +10:00
controllers (CE-3844) Refactor fix for PI and parser tag fix 2016-06-17 20:57:12 +10:00
js DAT-3707 create infobox builder extension 2016-02-12 11:38:47 +01:00
maintenance DAT-3171 Adding a maintenance script to handle invalid titles 2015-08-31 16:29:58 +02:00
querypage (MAIN-6855) Make hasInfobox and filterInfoboxes private 2016-04-06 19:55:36 +10:00
services (DAT-4494) Fix galleries and tabber in PortableInfoboxes 2016-06-16 16:59:48 +00:00
styles DAT-4018, change europa css class name 2016-03-29 11:47:22 +02:00
templates XW-1225 | remove $wgEnableSeoFriendlyImagesForMobile and clean up 2016-05-18 14:44:36 +02:00
tests Fix unit tests 2016-06-17 03:52:32 +10:00
crowdin.conf add missing new line 2015-05-06 14:56:40 +02:00
PortableInfobox.i18n.php DAT-3707 create infobox builder extension 2016-02-12 11:38:47 +01:00
PortableInfobox.setup.php XW-1429 | use ArticleAsJsonBeforeEncode hook to move the first infobox marker 2016-05-09 13:56:28 +02:00
PortableInfoboxHooks.class.php (CE-3844) Refactor fix for PI and parser tag fix 2016-06-17 20:57:12 +10:00