]> git.wh0rd.org - tt-rss.git/blobdiff - include/rssfuncs.php
workaround against markup being broken by cache_images()
[tt-rss.git] / include / rssfuncs.php
index 4cb81cd063b947250a427a52de9e293180609d4d..15d0d80ae5a3065a5828dfe831c2f8849009d3c4 100644 (file)
 
                                if ($_REQUEST["xdebug"] == 2) {
                                        print "update_rss_feed: content: ";
-                                       print_r(htmlspecialchars($entry_content));
+                                       print $entry_content;
                                        print "\n";
                                }
 
 
                                $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);
 
                                if (file_exists($local_filename)) {
                                        $entry->setAttribute('src', SELF_URL_PATH . '/image.php?url=' .
-                                               htmlspecialchars($src));
+                                               base64_encode($src));
                                }
                        }
                }