dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
f6c9c2e
)
Merge "libxml_disable_entity_loader() just in case..."
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Mon, 23 Sep 2013 19:44:22 +0000
(19:44 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Mon, 23 Sep 2013 19:44:22 +0000
(19:44 +0000)
includes/HtmlFormatter.php
patch
|
blob
|
history
diff --git
a/includes/HtmlFormatter.php
b/includes/HtmlFormatter.php
index
eb3e941
..
248a76f
100644
(file)
--- a/
includes/HtmlFormatter.php
+++ b/
includes/HtmlFormatter.php
@@
-73,9
+73,11
@@
class HtmlFormatter {
$html = str_replace( ' <', ' <', $html );
libxml_use_internal_errors( true );
+ $loader = libxml_disable_entity_loader();
$this->doc = new DOMDocument();
$this->doc->strictErrorChecking = false;
$this->doc->loadHTML( $html );
+ libxml_disable_entity_loader( $loader );
libxml_use_internal_errors( false );
$this->doc->encoding = 'UTF-8';
}