Skip to content

Commit 2144bf5

Browse files
committed
[ISSUE-275] fix the urlsafe base64 decode bug
1 parent 305ce1c commit 2144bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Qiniu/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function explodeUpToken($upToken)
255255
return array(null, null, "invalid uptoken");
256256
}
257257
$accessKey = $items[0];
258-
$putPolicy = json_decode(base64_decode($items[2]));
258+
$putPolicy = json_decode(base64_urlSafeDecode($items[2]));
259259
$scope = $putPolicy->scope;
260260
$scopeItems = explode(':', $scope);
261261
$bucket = $scopeItems[0];

0 commit comments

Comments
 (0)