Mattflaschen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/305753
Change subject: Use LIBXML_PARSEHUGE for deep XML documents
......................................................................
Use LIBXML_PARSEHUGE for deep XML documents
Bug: T140588
Change-Id: Ie1ef7009eb82c12e953cbdacfdfbeba32a18e8c2
---
M includes/Conversion/Utils.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/53/305753/1
diff --git a/includes/Conversion/Utils.php b/includes/Conversion/Utils.php
index 2b9e76b..56908df 100644
--- a/includes/Conversion/Utils.php
+++ b/includes/Conversion/Utils.php
@@ -351,7 +351,8 @@
// Work around DOMDocument's morbid insistence on using
iso-8859-1
// Even $dom = new DOMDocument( '1.0', 'utf-8' ); doesn't work,
you have to specify
// encoding ="utf-8" in the string fed to loadHTML()
- $dom->loadHTML( ( $utf8Fragment ? '<?xml encoding="utf-8"?>' :
'' ) . $content );
+ $html = ( $utf8Fragment ? '<?xml encoding="utf-8"?>' : '' ) .
$content;
+ $dom->loadHTML( $html, LIBXML_PARSEHUGE );
libxml_disable_entity_loader( $loadEntities );
--
To view, visit https://gerrit.wikimedia.org/r/305753
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie1ef7009eb82c12e953cbdacfdfbeba32a18e8c2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits