summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorMartin Kraemer <martin@php.net>2001-05-23 15:24:53 +0000
committerMartin Kraemer <martin@php.net>2001-05-23 15:24:53 +0000
commitc96d65284323198553a445aea6966a8cbbb26ffc (patch)
tree6ddab7a3483282f9e6a7c26d2f637cfd84c2360a /sapi
parent881f74263a908e480fc6d3203fd5128d7cbe1ef3 (diff)
downloadphp-git-c96d65284323198553a445aea6966a8cbbb26ffc.tar.gz
Fix Basic auth (when under PHP control) for EBCDIC platforms
Diffstat (limited to 'sapi')
-rw-r--r--sapi/apache/mod_php4.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c
index 1e79701d0f..204ddc1010 100644
--- a/sapi/apache/mod_php4.c
+++ b/sapi/apache/mod_php4.c
@@ -400,6 +400,9 @@ static void init_request_info(SLS_D)
/* && !auth_type(r) */
&& !strcasecmp(getword(r->pool, &authorization, ' '), "Basic")) {
tmp = uudecode(r->pool, authorization);
+#ifdef CHARSET_EBCDIC
+ ascii2ebcdic(tmp,tmp,strlen(tmp));
+#endif
SG(request_info).auth_user = getword_nulls_nc(r->pool, &tmp, ':');
if (SG(request_info).auth_user) {
r->connection->user = pstrdup(r->connection->pool,SG(request_info).auth_user);