From 8631d6f80d0705debe0e8861b2633df1760a0c70 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 14 Nov 2023 23:27:41 +0100 Subject: Favicon: avoid echo exception (#5867) Avoid potential Information Exposure --- lib/favicons.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/favicons.php') diff --git a/lib/favicons.php b/lib/favicons.php index a74f3331f..b161215b2 100644 --- a/lib/favicons.php +++ b/lib/favicons.php @@ -19,7 +19,7 @@ function isImgMime(string $content): bool { $isImage = strpos($content, 'image') !== false; finfo_close($fInfo); } catch (Exception $e) { - echo 'Caught exception: ', $e->getMessage(), "\n"; + syslog(LOG_WARNING, 'FreshRSS favicon error: ' . $e->getMessage()); } return $isImage; } -- cgit v1.2.3