Page MenuHomePhorge

D25516.1734743433.diff
No OneTemporary

D25516.1734743433.diff

diff --git a/src/applications/files/storage/PhabricatorFile.php b/src/applications/files/storage/PhabricatorFile.php
--- a/src/applications/files/storage/PhabricatorFile.php
+++ b/src/applications/files/storage/PhabricatorFile.php
@@ -971,10 +971,13 @@
// warns you if you don't have complete support.
$matches = null;
- $ok = preg_match(
- '@^image/(gif|png|jpe?g)@',
- $this->getViewableMimeType(),
- $matches);
+ $ok = false;
+ if ($this->getViewableMimeType() !== null) {
+ $ok = preg_match(
+ '@^image/(gif|png|jpe?g)@',
+ $this->getViewableMimeType(),
+ $matches);
+ }
if (!$ok) {
return false;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 01:10 (18 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020525
Default Alt Text
D25516.1734743433.diff (686 B)

Event Timeline