diff options
Diffstat (limited to 'lib/Minz/Url.php')
| -rw-r--r-- | lib/Minz/Url.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Url.php b/lib/Minz/Url.php index f0df93b69..809f2c39d 100644 --- a/lib/Minz/Url.php +++ b/lib/Minz/Url.php @@ -137,7 +137,7 @@ class Minz_Url { */ public static function unserialize(string $url = ''): array { try { - return json_decode(base64_decode($url), true, JSON_THROW_ON_ERROR) ?? []; + return json_decode(base64_decode($url, true) ?: '', true, JSON_THROW_ON_ERROR) ?? []; } catch (\Throwable $exception) { return []; } |
