diff --git a/functions.php b/functions.php index e5f06da37..bc46b7c64 100644 --- a/functions.php +++ b/functions.php @@ -2441,20 +2441,18 @@ } function sanitize_rss($str) { - $res = ""; + $res = $str; $res = preg_replace('//i', - "

", $str); + "

Disabled script: ", $res); - $res = preg_replace('/<\/script>/i', - "

", $res); + $res = preg_replace('/<\/script.*?>/i', "

", $res); + + $res = preg_replace('//i', "", $res); $res = preg_replace('/.*?<\/object>/i', "

(Disabled html object - - flash or other embedded content)

", $str); - - $res = preg_replace('/<\/object>/i', - "

", $res); + - flash or other embedded content)

", $res); return $res; } diff --git a/tt-rss.css b/tt-rss.css index a8136cb1b..337797e73 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1160,9 +1160,9 @@ span.debugTS { display : none; } -.scriptWarn:before { +/*.scriptWarn:before { content : "Disabled script:"; -} +}*/ .scriptWarn { color : white;