mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:45:56 +00:00
fetch_file_contents: improve error handling
1. if request fails get error string from http response status line 2. do not override http error with possible CURL/php specific last error 3. fix silent php error generated while processing response headers to get last modified value
This commit is contained in:
@@ -419,7 +419,7 @@ class RSSUtils {
|
||||
$feed_data = trim($feed_data);
|
||||
|
||||
_debug("fetch done.", $debug_enabled);
|
||||
_debug("source last modified: " . $fetch_last_modified);
|
||||
_debug("source last modified: " . $fetch_last_modified, $debug_enabled);
|
||||
|
||||
if ($feed_data && $fetch_last_modified != $stored_last_modified) {
|
||||
$last_modified_escaped = db_escape_string(substr($fetch_last_modified, 0, 245));
|
||||
|
||||
Reference in New Issue
Block a user