diff options
author | Andrew Dolgov <[email protected]> | 2012-12-24 14:17:24 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-24 14:17:24 +0400 |
commit | 356a991a7bfac731dc63d3ce29ccd050143fbebf (patch) | |
tree | 247216c7ea7d0dbe4b39472d63fc298c4b387012 /include/rssfuncs.php | |
parent | 4412b877d02c16c033a28fd2b9d9fafa9fd16214 (diff) |
update_rss_feed: escape error string immediately
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r-- | include/rssfuncs.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 817490a84..fb2f35272 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -1017,14 +1017,12 @@ } else { - $error_msg = mb_substr($rss->error(), 0, 250); + $error_msg = db_escape_string(mb_substr($rss->error(), 0, 250)); if ($debug_enabled) { _debug("update_rss_feed: error fetching feed: $error_msg"); } - $error_msg = db_escape_string($error_msg); - db_query($link, "UPDATE ttrss_feeds SET last_error = '$error_msg', last_updated = NOW() WHERE id = '$feed'"); |