";
if ($line['note']) {
@@ -5388,7 +5421,8 @@
}
}
- $article_content = sanitize_rss($link, $line["content_preview"]);
+ $article_content = sanitize_rss($link, $line["content_preview"],
+ false, false, $feed_site_url);
print "
";
if ($line['note']) {
@@ -7018,4 +7052,28 @@
return -1;
}
}
+
+ function build_url($parts) {
+ return $parts['scheme'] . "://" . $parts['host'] . $parts['path'];
+ }
+
+ function rewrite_relative_url($url, $rel_url) {
+ if (strpos($rel_url, "://") !== false) {
+ return $rel_url;
+ } else if (strpos($rel_url, "/") === 0)
+ {
+ $parts = parse_url($url);
+ $parts['path'] = $rel_url;
+
+ return build_url($parts);
+
+ } else {
+ $parts = parse_url($url);
+
+ $parts['path'] = dirname($parts['path']) . "/$rel_url";
+
+ return build_url($parts);
+ }
+ }
+
?>