cvs: php4 /sapi/apache mod_php4.c
| From: | Rasmus Lerdorf | Date: | Fri, 30 Jun 2000 17:39:21 +0000 |
| Subject: | cvs: php4 /sapi/apache mod_php4.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-569@lists.php.net to get a copy of this message | ||
rasmus Fri Jun 30 10:39:21 2000 EDT
Modified files:
/php4/sapi/apache mod_php4.c
Log:
Some user-agents send 'basic' instead of 'Basic' in their Authorization
header. ApacheBench is an example. PHP's HTTP Auth would not work with
these.
Some user-agents send 'basic' instead of 'Basic' in their Authorization
header. ApacheBench is an example. PHP's HTTP Auth would not work with
these. (Rasmus)
Index: php4/sapi/apache/mod_php4.c
diff -u php4/sapi/apache/mod_php4.c:1.53 php4/sapi/apache/mod_php4.c:1.54
--- php4/sapi/apache/mod_php4.c:1.53 Wed Jun 28 11:27:13 2000
+++ php4/sapi/apache/mod_php4.c Fri Jun 30 10:39:21 2000
@@ -17,7 +17,7 @@
| PHP 4.0 patches by Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: mod_php4.c,v 1.53 2000/06/28 18:27:13 zeev Exp $ */
+/* $Id: mod_php4.c,v 1.54 2000/06/30 17:39:21 rasmus Exp $ */
#define NO_REGEX_EXTRA_H
#ifdef WIN32
@@ -395,7 +395,7 @@
}
if (authorization
/* && !auth_type(r) */
- && !strcmp(getword(r->pool, &authorization, ' '), "Basic")) {
+ && !strcasecmp(getword(r->pool, &authorization, ' '),
"Basic")) {
tmp = uudecode(r->pool, authorization);
SG(request_info).auth_user = getword_nulls_nc(r->pool, &tmp, ':');
if (SG(request_info).auth_user) {