mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 12:58:11 +08:00
Merge pull request #11 from jonesshen/master
fix: 修复str_pad方法并不会补充=号的小问题
This commit is contained in:
commit
a24354ffec
@ -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