Make WordPress Core

Opened 22 years ago

Closed 22 years ago

#482 closed defect (bug) (fixed)

"The password field is empty" error under IIS while login in admin panel

Reported by: cdturri Owned by: matt
Priority: normal Milestone:
Component: Administration Version:
Severity: minor Keywords:
Cc: Focuses:

Description

I installed WordPress on an IIS server and in every browser I tested (Opera, Internet Explorer, Firefox and Konqueror) it displayed an error message of "The password field is empty" when attemping to log in however it then successfully logged in and redirected to the admin console.

I solved this issue by modifying the redirection code for IIS on wp-login.php from:
if ($is_IIS)

header("Refresh: 0;url=$redirect_to");

else

header("Location: $redirect_to");

to:

if ($is_IIS)
{
header("Refresh: 0;url=$redirect_to");
exit();
}
else

header("Location: $redirect_to");

The code continued to execute after sending the refresh header, which then attempted to log in again passing a blank password. This caused the empty password field error to be displayed. However the refresh would then occur and successfully login. The new code stops execution of the script after sending the refresh header.

The bug has been found on the following versions:

1.2.1
1.3 nightly build 2004-11-11

Change History (2)

#2 @matt
22 years ago

  • fixed_in_version → 1.5
  • Owner changed from anonymous to matt
  • Resolution 10 → 20
  • Status new → closed
Note: See TracTickets for help on using tickets.