Page MenuHomePhabricator

D19406.id46415.diff
No OneTemporary

D19406.id46415.diff

diff --git a/src/applications/files/favicon/PhabricatorFaviconRef.php b/src/applications/files/favicon/PhabricatorFaviconRef.php
--- a/src/applications/files/favicon/PhabricatorFaviconRef.php
+++ b/src/applications/files/favicon/PhabricatorFaviconRef.php
@@ -247,7 +247,14 @@
$src_w = $template['width'];
$src_h = $template['height'];
- $template_data = $template['file']->loadFileData();
+ try {
+ $template_data = $template['file']->loadFileData();
+ } catch (Exception $ex) {
+ // In rare cases, we can end up with a corrupted or inaccessible file.
+ // If we do, just give up: otherwise, it's impossible to get pages to
+ // generate and not obvious how to fix it.
+ return null;
+ }
if (!function_exists('imagecreatefromstring')) {
return $template_data;

File Metadata

Mime Type
text/plain
Expires
Tue, May 21, 11:08 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6298923
Default Alt Text
D19406.id46415.diff (824 B)

Event Timeline