From: Andrew Dolgov Date: Wed, 16 May 2007 07:13:11 +0000 (+0100) Subject: cleanup sanitize_rss() X-Git-Tag: schema_freeze_for_1.2.11~31 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8c7b2b8e4f34d87d1489295ab5dd63b5f3bfa4e7;p=tt-rss.git cleanup sanitize_rss() --- diff --git a/functions.php b/functions.php index 5e43a567..9bd79629 100644 --- a/functions.php +++ b/functions.php @@ -2608,17 +2608,6 @@ function sanitize_rss($link, $str) { $res = $str; -/* $res = preg_replace('//i', - "

Disabled script: ", $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)

", $res); */ - if (get_pref($link, "STRIP_UNSAFE_TAGS")) { $res = strip_tags($res, "


"); }