Sfoglia il codice sorgente

Favicon: avoid echo exception (#5867)

Avoid potential Information Exposure
Alexandre Alapetite 2 anni fa
parent
commit
8631d6f80d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
 		$isImage = strpos($content, 'image') !== false;
 		finfo_close($fInfo);
 		finfo_close($fInfo);
 	} catch (Exception $e) {
 	} catch (Exception $e) {
-		echo 'Caught exception: ',  $e->getMessage(), "\n";
+		syslog(LOG_WARNING, 'FreshRSS favicon error: ' . $e->getMessage());
 	}
 	}
 	return $isImage;
 	return $isImage;
 }
 }