summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-30 18:35:24 +0300
committerAndrew Dolgov <[email protected]>2010-11-30 18:35:24 +0300
commit46137483a59cbedaf8f652bc128b63070b463692 (patch)
tree40b61407f88bf7f8eaa1467884218b0ef86414cb /functions.php
parentc3edc667f127b9e36ecc08eb790f6c754e413e8f (diff)
sanitize_rss: do not try to rewrite urls when article seems to contain href= attributes
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php3
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"/>