We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cedd38 commit f5c664cCopy full SHA for f5c664c
cdn/signUrl.php
@@ -26,7 +26,7 @@
26
function base64url_decode($input)
27
{
28
$input .= str_repeat('=', (4 - strlen($input) % 4) % 4);
29
- return base64_decode(strtr($input, '-_', '+/'));
+ return base64_decode(strtr($input, '-_', '+/'), true);
30
}
31
32
/**
@@ -66,7 +66,7 @@ function base64url_encode($input, $padding = true)
66
function sign_url($url, $keyName, $base64UrlKey, $expirationTime)
67
68
// Decode the key
69
- $decodedKey = base64url_decode($base64UrlKey, true);
+ $decodedKey = base64url_decode($base64UrlKey);
70
71
// Determine which separator makes sense given a URL
72
$separator = (strpos($url, '?') === false) ? '?' : '&';
0 commit comments