فهرست منبع

Favicon: avoid echo exception (#5867)

Avoid potential Information Exposure
Alexandre Alapetite 2 سال پیش
والد
کامیت
8631d6f80d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lib/favicons.php

+ 1 - 1
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;
 }