jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: Ie1ef7009eb82c12e953cbdacfdfbeba32a18e8c2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to