Page MenuHomePhorge

D25406.1734631552.diff
No OneTemporary

D25406.1734631552.diff

diff --git a/src/applications/phriction/conduit/PhrictionCreateConduitAPIMethod.php b/src/applications/phriction/conduit/PhrictionCreateConduitAPIMethod.php
--- a/src/applications/phriction/conduit/PhrictionCreateConduitAPIMethod.php
+++ b/src/applications/phriction/conduit/PhrictionCreateConduitAPIMethod.php
@@ -25,7 +25,7 @@
protected function execute(ConduitAPIRequest $request) {
$slug = $request->getValue('slug');
- if (!strlen($slug)) {
+ if (!phutil_nonempty_string($slug)) {
throw new Exception(pht('No such document.'));
}
$doc = id(new PhrictionDocumentQuery())

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 18:05 (16 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015296
Default Alt Text
D25406.1734631552.diff (609 B)

Event Timeline