iframes were getting stripped at the rss/atom parser level. We can preserve these because we will strip them in the purifier after checking for supported video sources
This commit is contained in:
parent
b3bf48782f
commit
f0db196288
|
@ -446,6 +446,8 @@ function get_atom_elements($feed,$item) {
|
||||||
$res['body'] = $purifier->purify($res['body']);
|
$res['body'] = $purifier->purify($res['body']);
|
||||||
|
|
||||||
$res['body'] = @html2bbcode($res['body']);
|
$res['body'] = @html2bbcode($res['body']);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
elseif(! $have_real_body) {
|
elseif(! $have_real_body) {
|
||||||
|
|
||||||
|
|
|
@ -709,7 +709,7 @@ class SimplePie
|
||||||
* @see SimplePie::strip_htmltags()
|
* @see SimplePie::strip_htmltags()
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
var $strip_htmltags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style');
|
var $strip_htmltags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The SimplePie class contains feed level data and options
|
* The SimplePie class contains feed level data and options
|
||||||
|
@ -14803,7 +14803,7 @@ class SimplePie_Sanitize
|
||||||
// Options
|
// Options
|
||||||
var $remove_div = true;
|
var $remove_div = true;
|
||||||
var $image_handler = '';
|
var $image_handler = '';
|
||||||
var $strip_htmltags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style');
|
var $strip_htmltags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style');
|
||||||
var $encode_instead_of_strip = false;
|
var $encode_instead_of_strip = false;
|
||||||
var $strip_attributes = array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc');
|
var $strip_attributes = array('bgsound', 'class', 'expr', 'id', 'style', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc');
|
||||||
var $strip_comments = false;
|
var $strip_comments = false;
|
||||||
|
@ -14892,7 +14892,7 @@ class SimplePie_Sanitize
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function strip_htmltags($tags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'))
|
function strip_htmltags($tags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'))
|
||||||
{
|
{
|
||||||
if ($tags)
|
if ($tags)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue