diff options
-rw-r--r-- | sapi/apache/mod_php4.c | 3 |
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); |