Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2682715
D25817.1734669389.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
535 B
Referenced Files
None
Subscribers
None
D25817.1734669389.diff
View Options
diff --git a/src/applications/files/controller/PhabricatorFileViewController.php b/src/applications/files/controller/PhabricatorFileViewController.php
--- a/src/applications/files/controller/PhabricatorFileViewController.php
+++ b/src/applications/files/controller/PhabricatorFileViewController.php
@@ -316,7 +316,7 @@
}
$default_alt = $file->getDefaultAltText();
- if (strlen($default_alt)) {
+ if (phutil_nonempty_string($default_alt)) {
$finfo->addProperty(pht('Default Alt Text'), $default_alt);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 04:36 (15 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016534
Default Alt Text
D25817.1734669389.diff (535 B)
Attached To
Mode
D25817: Fix PHP 8.1 "strlen(null)" exception rendering a File's default Alt text
Attached
Detach File
Event Timeline
Log In to Comment