From 60452879145a3e208085960566113b49a22c1c33 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 21 Sep 2006 05:15:52 +0100 Subject: [PATCH] some more sanitize_rss fixes --- functions.php | 14 ++++++-------- tt-rss.css | 4 ++-- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/functions.php b/functions.php index e5f06da3..bc46b7c6 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 a8136cb1..337797e7 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; -- 2.39.5