Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2680688
D25611.1734613597.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
568 B
Referenced Files
None
Subscribers
None
D25611.1734613597.diff
View Options
diff --git a/src/applications/paste/xaction/PhabricatorPasteLanguageTransaction.php b/src/applications/paste/xaction/PhabricatorPasteLanguageTransaction.php
--- a/src/applications/paste/xaction/PhabricatorPasteLanguageTransaction.php
+++ b/src/applications/paste/xaction/PhabricatorPasteLanguageTransaction.php
@@ -14,7 +14,7 @@
}
private function renderLanguageValue($value) {
- if (!strlen($value)) {
+ if (!phutil_nonempty_string($value)) {
return $this->renderValue(pht('autodetect'));
} else {
return $this->renderValue($value);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 13:06 (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015069
Default Alt Text
D25611.1734613597.diff (568 B)
Attached To
Mode
D25611: Fix PHP 8.1 "strlen(null)" exception in PhabricatorPasteLanguageTransaction.php
Attached
Detach File
Event Timeline
Log In to Comment