Page MenuHomePhorge

D25258.1737114200.diff
No OneTemporary

D25258.1737114200.diff

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

Mime Type
text/plain
Expires
Fri, Jan 17, 11:43 (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119870
Default Alt Text
D25258.1737114200.diff (571 B)

Event Timeline