diff --git a/lib/bookmarks.php b/lib/bookmarks.php index 36faffca..c74adb71 100644 --- a/lib/bookmarks.php +++ b/lib/bookmarks.php @@ -402,6 +402,7 @@ class OC_Bookmarks_Bookmarks{ public static function importFile($file){ libxml_use_internal_errors(true); + $loadEntities = libxml_disable_entity_loader(true); $dom = new domDocument(); $dom->loadHTMLFile($file); @@ -423,6 +424,7 @@ class OC_Bookmarks_Bookmarks{ self::addBookmark($ref, $title, $tags,$desc_str ); } OCP\DB::commit(); + libxml_disable_entity_loader($loadEntities); return array(); }