mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #829 from dogmatic69/string-simplify-code
this change did make wonky uuids
This commit is contained in:
commit
5ddb61be92
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ class String {
|
|||
} elseif ($node !== '127.0.0.1') {
|
||||
$node = ip2long($node);
|
||||
} else {
|
||||
$node = null;
|
||||
}
|
||||
|
||||
if(empty($node)) {
|
||||
$node = crc32(Configure::read('Security.salt'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue