sanitize_rss: do not try to rewrite urls when article seems to contain href= attributes

This commit is contained in:
Andrew Dolgov 2010-11-30 18:35:24 +03:00
parent c3edc667f1
commit 46137483a5
1 changed files with 2 additions and 1 deletions

View File

@ -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"/>