Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2694423
D25405.1734783317.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
531 B
Referenced Files
None
Subscribers
None
D25405.1734783317.diff
View Options
diff --git a/src/applications/paste/conduit/PasteCreateConduitAPIMethod.php b/src/applications/paste/conduit/PasteCreateConduitAPIMethod.php
--- a/src/applications/paste/conduit/PasteCreateConduitAPIMethod.php
+++ b/src/applications/paste/conduit/PasteCreateConduitAPIMethod.php
@@ -43,7 +43,7 @@
$title = $request->getValue('title');
$language = $request->getValue('language');
- if (!strlen($content)) {
+ if (!phutil_nonempty_string($content)) {
throw new ConduitException('ERR-NO-PASTE');
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 12:15 (17 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1024037
Default Alt Text
D25405.1734783317.diff (531 B)
Attached To
Mode
D25405: Fix PHP 8.1 "strlen(null)" exception creating a Paste without content in Conduit paste.create
Attached
Detach File
Event Timeline
Log In to Comment