mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-03 03:29:09 -04:00
Convert html::specialchars() to html::chars()
This commit is contained in:
@@ -86,7 +86,7 @@ class user_Core {
|
||||
}
|
||||
|
||||
// Passwords with <&"> created by G2 prior to 2.1 were hashed with entities
|
||||
$sanitizedPassword = html::specialchars($password, false);
|
||||
$sanitizedPassword = html::chars($password, false);
|
||||
$guess = (strlen($valid) == 32) ? md5($sanitizedPassword)
|
||||
: ($salt . md5($salt . $sanitizedPassword));
|
||||
if (!strcmp($guess, $valid)) {
|
||||
|
||||
@@ -63,7 +63,7 @@ class IdentityProvider_Gallery_Driver implements IdentityProvider_Driver {
|
||||
}
|
||||
|
||||
// Passwords with <&"> created by G2 prior to 2.1 were hashed with entities
|
||||
$sanitizedPassword = html::specialchars($password, false);
|
||||
$sanitizedPassword = html::chars($password, false);
|
||||
$guess = (strlen($valid) == 32) ? md5($sanitizedPassword)
|
||||
: ($salt . md5($salt . $sanitizedPassword));
|
||||
if (!strcmp($guess, $valid)) {
|
||||
|
||||
Reference in New Issue
Block a user