Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2935001
D25406.1737812070.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.1737812070.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
Sat, Jan 25, 13:34 (5 d, 52 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111640
Default Alt Text
D25406.1737812070.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