Page MenuHomePhorge

D25405.1734762936.diff
No OneTemporary

D25405.1734762936.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
Sat, Dec 21, 06:35 (18 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1024037
Default Alt Text
D25405.1734762936.diff (531 B)

Event Timeline