Skip to content

Commit

Permalink
Fix negative admin unique id on 32 bits platforms (#5219)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelVella authored and greg0ire committed Sep 4, 2018
1 parent d2c2acd commit 140855c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/AbstractAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,7 @@ public function setUniqid($uniqid)
public function getUniqid()
{
if (!$this->uniqid) {
$this->uniqid = 's'.crc32($this->getBaseCodeRoute());
$this->uniqid = 's'.substr(md5($this->getBaseCodeRoute()), 0, 10);
}

return $this->uniqid;
Expand Down

0 comments on commit 140855c

Please sign in to comment.