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

master
Andrew Dolgov 14 years ago
parent c3edc667f1
commit 46137483a5

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

Loading…
Cancel
Save