mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
1.10.4.181
This commit is contained in:
parent
f70d9e46a0
commit
224362299a
11 changed files with 4301 additions and 4288 deletions
|
|
@ -1721,7 +1721,7 @@ END;
|
|||
*/
|
||||
public static function UrlSafeBase64Encode($sValue)
|
||||
{
|
||||
return \rtrim(\strtr(\base64_encode(\trim($sValue)), '+/', '-_'), '=');
|
||||
return \rtrim(\strtr(\base64_encode($sValue), '+/', '-_'), '=');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1732,7 +1732,7 @@ END;
|
|||
public static function UrlSafeBase64Decode($sValue)
|
||||
{
|
||||
$sValue = \rtrim(\strtr($sValue, '-_.', '+/='), '=');
|
||||
return \MailSo\Base\Utils::Base64Decode(\str_pad($sValue, \strlen($sValue) % 4, '=', STR_PAD_RIGHT));
|
||||
return \MailSo\Base\Utils::Base64Decode(\str_pad($sValue, \strlen($sValue) + (\strlen($sValue) % 4), '=', STR_PAD_RIGHT));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue