Browse Source

converted passwords sometimes broken

ThorstenEurich 12 years ago
parent
commit
e96b27f4ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/LogInOut.php

+ 1 - 1
Sources/LogInOut.php

@@ -321,7 +321,7 @@ function Login2()
 		elseif (strlen($user_settings['passwd']) == 32)
 		elseif (strlen($user_settings['passwd']) == 32)
 		{
 		{
 			// vBulletin 3 style hashing?  Let's welcome them with open arms \o/.
 			// vBulletin 3 style hashing?  Let's welcome them with open arms \o/.
-			$other_passwords[] = md5(md5($_POST['passwrd']) . $user_settings['password_salt']);
+			$other_passwords[] = md5(md5($_POST['passwrd']) . stripslashes($user_settings['password_salt']));
 
 
 			// Hmm.. p'raps it's Invision 2 style?
 			// Hmm.. p'raps it's Invision 2 style?
 			$other_passwords[] = md5(md5($user_settings['password_salt']) . md5($_POST['passwrd']));
 			$other_passwords[] = md5(md5($user_settings['password_salt']) . md5($_POST['passwrd']));