I read a feed whose author has a ' in his name (like "G d'A"), which messes up the SQL syntax.
Once this fails, the update process aborts, keeping many feeds un-updated.
The following hackish patch fixes it for me and might be an inspiration for you.
--- functions.php.orig Wed Feb 13 13:13:32 2008
+++ functions.php Wed Feb 13 13:14:48 2008
@@ -952,8 +952,13 @@
}
# sanitize content
+
+function escape_properly($str) {
+ return str_replace("'", "\\'", $str);
+}
// $entry_content = sanitize_rss($entry_content);
+ $entry_author = escape_properly($entry_author);
if (defined('DAEMON_EXTENDED_DEBUG')
$_GETxdebug?) {
_debug("update_rss_feed: done collecting data [TITLE:$entry_title]");
Change History
Download in other formats:
|