From: Roan Kattouw Date: Tue, 30 Oct 2007 21:55:34 +0000 (+0000) Subject: API: Also prevent double escaping when outputting an error message in xmlfm X-Git-Tag: 1.31.0-rc.0~51042 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=54c4fc42d9816f18dfb3ffd3e00072bb7eacc97e;p=lhc%2Fweb%2Fwiklou.git API: Also prevent double escaping when outputting an error message in xmlfm --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index c1ef4616dd..406d23a018 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -325,7 +325,7 @@ class ApiMain extends ApiBase { * tell the printer not to escape ampersands so that our links do * not break. */ $params = $this->extractRequestParams(); - $printer->setUnescapeAmps ( $this->mAction == 'help' + $printer->setUnescapeAmps ( ( $this->mAction == 'help' || $isError ) && $params['format'] == ApiMain::API_DEFAULT_FORMAT ); $printer->initPrinter($isError);