Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2680965
D25406.1734631552.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
609 B
Referenced Files
None
Subscribers
None
D25406.1734631552.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25406: Fix PHP 8.1 "strlen(null)" exception creating a Phriction doc without slug in Conduit
Attached
Detach File
Event Timeline
Log In to Comment