Page MenuHomePhorge

D25406.1745839017.diff
No OneTemporary

D25406.1745839017.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
Mon, Apr 28, 11:16 (1 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111640
Default Alt Text
D25406.1745839017.diff (609 B)

Event Timeline