Page MenuHomePhorge

D25516.1734721964.diff
No OneTemporary

D25516.1734721964.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, 19:12 (12 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020525
Default Alt Text
D25516.1734721964.diff (686 B)

Event Timeline