X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/03e18bcdbca85c9396dec9cc6d5b4b93836ff37a..d8a52aa745826b3dfa93f3e800a63ea57453d6e5:/Util/SluggerUtil.php diff --git a/Util/SluggerUtil.php b/Util/SluggerUtil.php index 7abf5d3..0ff32c5 100644 --- a/Util/SluggerUtil.php +++ b/Util/SluggerUtil.php @@ -116,7 +116,7 @@ class SluggerUtil { //Return hashed data //XXX: we use hash_hmac with md5 hash //XXX: crypt was dropped because it provided identical signature for string starting with same pattern - return str_replace(['+','/'], ['-','_'], base64_encode(hash_hmac('md5', $data, $this->secret, true))); + return str_replace(['+','/','='], ['-','_',''], base64_encode(hash_hmac('md5', $data, $this->secret, true))); } /**