From ccc8f76e3cbef71f665cf6644a39528290bddf8d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 6 Oct 2008 23:57:05 +0000 Subject: [PATCH] (bug 10250) New password submission oddness for empty passwords --- includes/specials/SpecialPreferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index ca1e3d33bd..ea98e00197 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -135,7 +135,7 @@ class PreferencesForm { global $wgAuth, $wgEmailConfirmToEdit; - if ( '' != $this->mNewpass && $wgAuth->allowPasswordChange() ) { + if ( ($this->mNewpass !== '' || $this->mOldpass !== '' ) && $wgAuth->allowPasswordChange() ) { if ( $this->mNewpass != $this->mRetypePass ) { wfRunHooks( 'PrefsPasswordAudit', array( $wgUser, $this->mNewpass, 'badretype' ) ); $this->mainPrefsForm( 'error', wfMsg( 'badretype' ) ); -- 2.20.1