From 54c4fc42d9816f18dfb3ffd3e00072bb7eacc97e Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 30 Oct 2007 21:55:34 +0000 Subject: [PATCH] API: Also prevent double escaping when outputting an error message in xmlfm --- includes/api/ApiMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1