mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-12 11:31:00 +02:00
Merge branch 'bugfix/invalid-opml' of wn/tt-rss into master
This commit is contained in:
commit
68b78ecd3d
@ -606,7 +606,7 @@ class Opml extends Handler_Protected {
|
|||||||
if (is_file($tmp_file)) {
|
if (is_file($tmp_file)) {
|
||||||
$doc = new DOMDocument();
|
$doc = new DOMDocument();
|
||||||
libxml_disable_entity_loader(false);
|
libxml_disable_entity_loader(false);
|
||||||
$doc->load($tmp_file);
|
$loaded = $doc->load($tmp_file);
|
||||||
libxml_disable_entity_loader(true);
|
libxml_disable_entity_loader(true);
|
||||||
unlink($tmp_file);
|
unlink($tmp_file);
|
||||||
} else if (!$doc) {
|
} else if (!$doc) {
|
||||||
@ -614,7 +614,7 @@ class Opml extends Handler_Protected {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($doc) {
|
if ($loaded) {
|
||||||
$this->pdo->beginTransaction();
|
$this->pdo->beginTransaction();
|
||||||
$this->opml_import_category($doc, false, $owner_uid, false);
|
$this->opml_import_category($doc, false, $owner_uid, false);
|
||||||
$this->pdo->commit();
|
$this->pdo->commit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user