Remove check against the old file in 'RSSUtils::check_feed_favicon'.

This commit is contained in:
wn_ 2021-02-22 12:06:27 +00:00
parent 02a9485966
commit 6fbf7ef368
1 changed files with 0 additions and 9 deletions

View File

@ -1662,15 +1662,6 @@ class RSSUtils {
return false; return false;
} }
$original_contents_md5 = file_exists($icon_file) ? md5_file($icon_file) : null;
if ($original_contents_md5) {
if (md5($contents) == $original_contents_md5) {
Debug::log("favicon content has not changed", Debug::$LOG_VERBOSE);
return $icon_file;
}
Debug::log("favicon content has changed", Debug::$LOG_VERBOSE);
}
// Crude image type matching. // Crude image type matching.
// Patterns gleaned from the file(1) source code. // Patterns gleaned from the file(1) source code.
if (preg_match('/^\x00\x00\x01\x00/', $contents)) { if (preg_match('/^\x00\x00\x01\x00/', $contents)) {