From 7d5e7bf6c86997d875e645ca59004d021d982658 Mon Sep 17 00:00:00 2001 From: Klaus Weidenbach Date: Sat, 15 Apr 2017 13:46:13 +0200 Subject: We do not parse the body in discover_by_url(), so no need to preserve iframes in SimplePie. --- include/network.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'include/network.php') diff --git a/include/network.php b/include/network.php index 2d47c5b92..c03ca70f5 100644 --- a/include/network.php +++ b/include/network.php @@ -1049,7 +1049,6 @@ function email_send($addr, $subject, $headers, $item) { * @return boolean */ function discover_by_url($url, $arr = null) { - require_once('library/HTML5/Parser.php'); $x = scrape_feed($url); if(! $x) { @@ -1092,12 +1091,6 @@ function discover_by_url($url, $arr = null) { // Don't try and parse an empty string $feed->set_raw_data(($xml) ? $xml : ''); - // We can preserve iframes because we will strip them in the purifier after - // checking for supported video sources. - $strip_htmltags = $feed->strip_htmltags; - array_splice($strip_htmltags, array_search('iframe', $strip_htmltags), 1); - $feed->strip_htmltags($strip_htmltags); - $feed->init(); if($feed->error()) logger('scrape_feed: Error parsing XML: ' . $feed->error()); @@ -1856,6 +1849,7 @@ function scrape_vcard($url) { * @return array */ function scrape_feed($url) { + require_once('library/HTML5/Parser.php'); $ret = array(); $level = 0; -- cgit v1.2.3