From 46137483a59cbedaf8f652bc128b63070b463692 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 30 Nov 2010 18:35:24 +0300 Subject: [PATCH] sanitize_rss: do not try to rewrite urls when article seems to contain href= attributes --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = ' -- 2.39.5