From: Andrew Dolgov Date: Tue, 30 Nov 2010 15:35:24 +0000 (+0300) Subject: sanitize_rss: do not try to rewrite urls when article seems to contain href= attributes X-Git-Tag: 1.5.0~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=46137483a59cbedaf8f652bc128b63070b463692;p=tt-rss.git sanitize_rss: do not try to rewrite urls when article seems to contain href= attributes --- diff --git a/functions.php b/functions.php index 90e23d89..50c6f27f 100644 --- a/functions.php +++ b/functions.php @@ -3669,7 +3669,8 @@ $res = preg_replace('/]+>/is', '', $res); } - $res = rewrite_urls($res); + if (strpos($res, "href=") === false) + $res = rewrite_urls($res); $charset_hack = '