1.10.4.181

This commit is contained in:
RainLoop Team 2016-09-21 19:57:13 +03:00
parent f70d9e46a0
commit 224362299a
11 changed files with 4301 additions and 4288 deletions

View file

@ -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));
}
/**