projects
/
apache
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae9fe2f
)
Remove the Authorization header should either the username or the password
author
Graham Leggett
<minfrin@apache.org>
Sun, 17 Mar 2013 17:58:30 +0000
(17:58 +0000)
committer
Graham Leggett
<minfrin@apache.org>
Sun, 17 Mar 2013 17:58:30 +0000
(17:58 +0000)
resolve to an empty string.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1457504
13f79535
-47bb-0310-9956-
ffa450edef68
modules/aaa/mod_auth_basic.c
patch
|
blob
|
history
diff --git
a/modules/aaa/mod_auth_basic.c
b/modules/aaa/mod_auth_basic.c
index 39999f07c20d25378a9ef02e806c957c56835c28..fe2c3a42481f0390fe877b0eb081180a90c6002c 100644
(file)
--- a/
modules/aaa/mod_auth_basic.c
+++ b/
modules/aaa/mod_auth_basic.c
@@
-376,6
+376,9
@@
static int authenticate_basic_fake(request_rec *r)
if (!user || !*user) {
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(02458)
"AuthBasicFake: empty username expression for URI '%s', ignoring", r->uri);
+
+ apr_table_unset(r->headers_in, "Authorization");
+
return DECLINED;
}
@@
-388,6
+391,9
@@
static int authenticate_basic_fake(request_rec *r)
if (!pass || !*pass) {
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(02459)
"AuthBasicFake: empty password expression for URI '%s', ignoring", r->uri);
+
+ apr_table_unset(r->headers_in, "Authorization");
+
return DECLINED;
}