mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:15:55 +00:00
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
This commit is contained in:
@@ -51,7 +51,7 @@ class FeedItem_RSS extends FeedItem_Common {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_title() {
|
function get_title() {
|
||||||
$title = $this->elem->getElementsByTagName("title")->item(0);
|
$title = $this->xpath->query("title", $this->elem)->item(0);
|
||||||
|
|
||||||
if ($title) {
|
if ($title) {
|
||||||
return trim($title->nodeValue);
|
return trim($title->nodeValue);
|
||||||
|
|||||||
@@ -189,6 +189,8 @@ class Import_Export extends Plugin implements IHandler {
|
|||||||
$num_processed = 0;
|
$num_processed = 0;
|
||||||
$num_feeds_created = 0;
|
$num_feeds_created = 0;
|
||||||
|
|
||||||
|
libxml_disable_entity_loader(false);
|
||||||
|
|
||||||
$doc = @DOMDocument::load($filename);
|
$doc = @DOMDocument::load($filename);
|
||||||
|
|
||||||
if (!$doc) {
|
if (!$doc) {
|
||||||
@@ -206,6 +208,8 @@ class Import_Export extends Plugin implements IHandler {
|
|||||||
$doc = DOMDocument::loadXML($data);
|
$doc = DOMDocument::loadXML($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
libxml_disable_entity_loader(true);
|
||||||
|
|
||||||
if ($doc) {
|
if ($doc) {
|
||||||
|
|
||||||
$xpath = new DOMXpath($doc);
|
$xpath = new DOMXpath($doc);
|
||||||
|
|||||||
Reference in New Issue
Block a user