php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1820 Using Error Document 401 always causes password protection to fail.
Submitted: 1999-07-22 00:50 UTC Modified: 2000-06-24 10:43 UTC
From: mbryan at radiocafe dot com Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Beta 1 OS: Redhat Linux 6.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mbryan at radiocafe dot com
New email:
PHP Version: OS:

 

 [1999-07-22 00:50 UTC] mbryan at radiocafe dot com
Weird problem.

I've been using ErrorDocument 401 in Apache to redirect users when they type in an incorrect username/password.
As soon as upgraded to PHP 4, I would always get an incorrect username/password message without the popup box ever displaying.  As soon as I removed the ErrorDocument, the popup box returned and usage was back to normal.

Ideas?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-24 10:43 UTC] stas at cvs dot php dot net
Apache manual says:

If the ErrorDocument specifies a local redirect to a CGI script, the script should include a "Status:" header field in its output in order to ensure the
propagation all the way back to the client of the error condition that caused it to be invoked.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 08:01:30 2025 UTC