Browse Source

temporarily enable entity loader when importing opml because idk

Andrew Dolgov 5 years ago
parent
commit
3457ce7c59
1 changed files with 2 additions and 0 deletions
  1. 2 0
      classes/opml.php

+ 2 - 0
classes/opml.php

@@ -491,7 +491,9 @@ class Opml extends Handler_Protected {
 
 		if (is_file($tmp_file)) {
 			$doc = new DOMDocument();
+			libxml_disable_entity_loader(false);
 			$doc->load($tmp_file);
+			libxml_disable_entity_loader(true);
 			unlink($tmp_file);
 		} else if (!$doc) {
 			print_error(__('Error: unable to find moved OPML file.'));