aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-11-14 23:27:41 +0100
committerGravatar GitHub <noreply@github.com> 2023-11-14 23:27:41 +0100
commit8631d6f80d0705debe0e8861b2633df1760a0c70 (patch)
treeb9e338735ab9c846a49c66c654fd5a0884ace89a
parent9eba8726ac08d75730a9ed5fd26047f502007dfd (diff)
Favicon: avoid echo exception (#5867)
Avoid potential Information Exposure
-rw-r--r--lib/favicons.php2
1 files changed, 1 insertions, 1 deletions
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;
}