Rapsys Git
/
packbundle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add alias and config members
[packbundle]
/
Util
/
SluggerUtil.php
diff --git
a/Util/SluggerUtil.php
b/Util/SluggerUtil.php
index 7abf5d325231d519ef28b35f765bde841d216098..0ff32c59ac1f7ac6c20945bf62083517510c355e 100644
(file)
--- 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 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)));
}
/**
}
/**