Page MenuHomePhorge

D25405.1737324916.diff
No OneTemporary

D25405.1737324916.diff

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

Mime Type
text/plain
Expires
Sun, Jan 19, 22:15 (20 h, 45 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111639
Default Alt Text
D25405.1737324916.diff (531 B)

Event Timeline