Permalink
Browse files

Convert html::specialchars() to html::chars()

  • Loading branch information...
bharat committed Dec 18, 2009
1 parent 0736cf2 commit c10386fe87f9fe0d659e730d171800f26f809604
Showing with 2 additions and 2 deletions.
  1. +1 −1 modules/user/helpers/user.php
  2. +1 −1 modules/user/libraries/drivers/IdentityProvider/Gallery.php
@@ -86,7 +86,7 @@ static function is_correct_password($user, $password) {
}
// 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 @@ public function is_correct_password($user, $password) {
}
// 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)) {

0 comments on commit c10386f

Please sign in to comment.