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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC