mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 00:37:02 +02:00
Additional updates for processwire/processwire-issues#1467
This commit is contained in:
@@ -811,6 +811,7 @@ function wireClassName($className, $withNamespace = false, $verbose = false) {
|
||||
$object = null;
|
||||
}
|
||||
|
||||
$className = (string) $className;
|
||||
$pos = strrpos($className, $bs);
|
||||
|
||||
if($withNamespace === true) {
|
||||
|
@@ -246,7 +246,7 @@ class Password extends Wire {
|
||||
} else {
|
||||
// older style, non-blowfish support
|
||||
// split the password in two
|
||||
$splitPass = str_split($pass, (strlen($pass) / 2) + 1);
|
||||
$splitPass = str_split($pass, (int) (strlen($pass) / 2) + 1);
|
||||
// generate the hash
|
||||
$hash = hash($hashType, $salt1 . $splitPass[0] . $salt2 . $splitPass[1], false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user