Page MenuHomePhorge

D25516.1734730591.diff
No OneTemporary

D25516.1734730591.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
Fri, Dec 20, 21:36 (16 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020525
Default Alt Text
D25516.1734730591.diff (686 B)

Event Timeline