Skip to content

Commit 7a036f1

Browse files
Issue #670454 by pwolanin, cburschka, effulgentsia: Support HTTP Authorization in CGI environments.
1 parent f58bc6a commit 7a036f1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.htaccess

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ DirectoryIndex index.php index.html index.htm
6363
RewriteCond %{HTTPS} on
6464
RewriteRule ^ - [E=protossl:s]
6565

66+
# Make sure Authorization HTTP header is available to PHP
67+
# even when running as CGI or FastCGI.
68+
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
69+
6670
# Block access to "hidden" directories whose names begin with a period. This
6771
# includes directories used by version control systems such as Subversion or
6872
# Git to store control files. Files whose names begin with a period, as well

CHANGELOG.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
Drupal 7.23, xxxx-xx-xx (development version)
33
-----------------------
4+
- Changed the default .htaccess file to support HTTP authorization in CGI
5+
environments.
46
- Changed the password reset form to pre-fill the username when requested via a
57
URL query parameter, and used this in the error message that appears after a
68
failed login attempt (minor data structure and behavior change).

0 commit comments

Comments
 (0)