mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:45:56 +00:00
report all libxml errors in updater debug output
force utf8 encoding if devforceupdate is on parser: try to convert non-unicode feeds with specified encoding to utf8 before trying to remove dangling utf8 characters in case of utf8-related libxml errors because doing so produces garbage content
This commit is contained in:
@@ -1110,7 +1110,13 @@
|
||||
|
||||
$error_msg = db_escape_string(mb_substr($rss->error(), 0, 245));
|
||||
|
||||
_debug("error fetching feed: $error_msg", $debug_enabled);
|
||||
_debug("fetch error: $error_msg", $debug_enabled);
|
||||
|
||||
if (count($rss->errors()) > 1) {
|
||||
foreach ($rss->errors() as $error) {
|
||||
_debug("+ $error");
|
||||
}
|
||||
}
|
||||
|
||||
db_query(
|
||||
"UPDATE ttrss_feeds SET last_error = '$error_msg',
|
||||
|
||||
Reference in New Issue
Block a user