Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2682829
D25258.1734673785.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
571 B
Referenced Files
None
Subscribers
None
D25258.1734673785.diff
View Options
diff --git a/src/applications/files/conduit/FileConduitAPIMethod.php b/src/applications/files/conduit/FileConduitAPIMethod.php
--- a/src/applications/files/conduit/FileConduitAPIMethod.php
+++ b/src/applications/files/conduit/FileConduitAPIMethod.php
@@ -81,6 +81,9 @@
}
protected function decodeBase64($data) {
+ if (!phutil_nonempty_string($data)) {
+ throw new Exception(pht('Empty base64 data!'));
+ }
$data = base64_decode($data, $strict = true);
if ($data === false) {
throw new Exception(pht('Unable to decode base64 data!'));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 05:49 (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016606
Default Alt Text
D25258.1734673785.diff (571 B)
Attached To
Mode
D25258: Fix PHP 8.1 "base64_decode(null)" exception calling Conduit's file.upload with no data passed
Attached
Detach File
Event Timeline
Log In to Comment