dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61f0d65
)
API: Also prevent double escaping when outputting an error message in xmlfm
author
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 30 Oct 2007 21:55:34 +0000
(21:55 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Tue, 30 Oct 2007 21:55:34 +0000
(21:55 +0000)
includes/api/ApiMain.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiMain.php
b/includes/api/ApiMain.php
index
c1ef461
..
406d23a
100644
(file)
--- 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);