summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-12-28 23:03:55 +0400
committerAndrew Dolgov <[email protected]>2011-12-28 23:03:55 +0400
commit487f0750c8d955c7994dc6180d1f56f26e1e9bf5 (patch)
tree7e4dad73d1229e31ae09a6c9dd98bf84dc207e19 /include
parent4cd3011163c9405845ccbff121c81486774b878b (diff)
workaround against markup being broken by cache_images()
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 4cb81cd06..15d0d80ae 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -683,7 +683,7 @@
if ($_REQUEST["xdebug"] == 2) {
print "update_rss_feed: content: ";
- print_r(htmlspecialchars($entry_content));
+ print $entry_content;
print "\n";
}
@@ -732,7 +732,7 @@
$entry_content = db_escape_string($entry_content, false);
- $content_hash = "SHA1:x" . sha1(strip_tags($entry_content));
+ $content_hash = "SHA1:" . sha1(strip_tags($entry_content));
$entry_title = db_escape_string($entry_title);
$entry_link = db_escape_string($entry_link);
@@ -1341,7 +1341,7 @@
if (file_exists($local_filename)) {
$entry->setAttribute('src', SELF_URL_PATH . '/image.php?url=' .
- htmlspecialchars($src));
+ base64_encode($src));
}
}
}