Page MenuHomePhorge

D25405.1734783317.diff
No OneTemporary

D25405.1734783317.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, 12:15 (17 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1024037
Default Alt Text
D25405.1734783317.diff (531 B)

Event Timeline