mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-23 20:54:23 +01:00
Disable entity loader just in case
This commit is contained in:
parent
88bb336649
commit
f162be27fc
@ -399,6 +399,7 @@ 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);
|
||||||
@ -420,6 +421,7 @@ 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user