1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-02-01 02:52:09 +01:00

Revert "Disable entity loader just in case"

This reverts commit 9c8d26fa9be03f28aa553b8fdc3fba61d5af4c1b.
This commit is contained in:
Lukas Reschke 2014-11-05 22:40:55 +01:00
parent f9bc84916d
commit 9d9667b9e6

View File

@ -408,7 +408,6 @@ class OC_Bookmarks_Bookmarks{
public static function importFile($file){ public static function importFile($file){
libxml_use_internal_errors(true); libxml_use_internal_errors(true);
$loadEntities = libxml_disable_entity_loader(true);
$dom = new domDocument(); $dom = new domDocument();
$dom->loadHTMLFile($file); $dom->loadHTMLFile($file);
@ -430,7 +429,6 @@ class OC_Bookmarks_Bookmarks{
self::addBookmark($ref, $title, $tags,$desc_str ); self::addBookmark($ref, $title, $tags,$desc_str );
} }
OCP\DB::commit(); OCP\DB::commit();
libxml_disable_entity_loader($loadEntities);
return array(); return array();
} }