Fix not parsed message on Special:Import
authorFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Tue, 1 Aug 2017 20:43:51 +0000 (22:43 +0200)
committerFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Tue, 1 Aug 2017 20:43:51 +0000 (22:43 +0200)
commitc5d63ff572132b256655b72ac95eb8d5a3416533
tree9e2575ea58f6334c517bc52b04ebca18ed663263
parent67627711855f9a6da308295743dee5623d4cc279
Fix not parsed message on Special:Import

If session data is lost between the transactions (read: the csrf token
does not match), the error message contains some wiki markup as well as
HTML. However, unfortunately, SpecialImport uses $out->wrapWikiMsg() in
combination with an error message (with wiki markup and HTML) wrapped as
a parameter of another message. This results in an escaped paramater and
it is not parsed correctly, which leads in wiki markup send to the user.

This change fixes that issue by parsing the message directly.

Bug: T172114
Change-Id: If49a600173c44d098f25d6e2a9b87b7b7bf3ee2a
includes/specials/SpecialImport.php
languages/i18n/en.json