diff options
author | Andrew Dolgov <[email protected]> | 2010-11-30 18:35:24 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-30 18:35:24 +0300 |
commit | 46137483a59cbedaf8f652bc128b63070b463692 (patch) | |
tree | 40b61407f88bf7f8eaa1467884218b0ef86414cb | |
parent | c3edc667f127b9e36ecc08eb790f6c754e413e8f (diff) |
sanitize_rss: do not try to rewrite urls when article seems to contain href= attributes
-rw-r--r-- | functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 90e23d897..50c6f27fb 100644 --- a/functions.php +++ b/functions.php @@ -3669,7 +3669,8 @@ $res = preg_replace('/<img[^>]+>/is', '', $res); } - $res = rewrite_urls($res); + if (strpos($res, "href=") === false) + $res = rewrite_urls($res); $charset_hack = '<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |