From 1ac0baf4ea92919bef895c03ffcf22a808c7f2d0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 18 May 2007 08:14:44 +0100 Subject: mobile: sanitize article content --- functions.php | 4 ++-- mobile/functions.php | 2 +- tt-rss.css | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index e316f74f5..62f0cdd02 100644 --- a/functions.php +++ b/functions.php @@ -2637,10 +2637,10 @@ } } - function sanitize_rss($link, $str) { + function sanitize_rss($link, $str, $force_strip_tags = false) { $res = $str; - if (get_pref($link, "STRIP_UNSAFE_TAGS")) { + if (get_pref($link, "STRIP_UNSAFE_TAGS") || $force_strip_tags) { $res = strip_tags($res, "


"); } diff --git a/mobile/functions.php b/mobile/functions.php index 86a07bd10..bec74d180 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -769,7 +769,7 @@ print "
Tags: $tags_str
"; } - print $line["content"]; + print sanitize_rss($link, $line["content"], true);; } diff --git a/tt-rss.css b/tt-rss.css index 1956e14d9..bd843c59e 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1569,3 +1569,5 @@ a.helpLinkPic img { li.feedCatHolder { display : inline; } + + -- cgit v1.2.3