Page MenuHomePhorge

D25258.1734673785.diff
No OneTemporary

D25258.1734673785.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, 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)

Event Timeline