mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 12:38:11 +08:00
fix: 修复str_pad方法并不会补充=号的小问题
This commit is contained in:
parent
27ee1fa363
commit
fa47993037
@ -143,7 +143,7 @@ class CodeExtend
|
||||
*/
|
||||
public static function deSafe64(string $text): string
|
||||
{
|
||||
return base64_decode(str_pad(strtr($text, '-_', '+/'), strlen($text) % 4, '='));
|
||||
return base64_decode(str_pad(strtr($text, '-_', '+/'), (int) (ceil(strlen($text) / 4) * 4), '='));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user