From c96d65284323198553a445aea6966a8cbbb26ffc Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Wed, 23 May 2001 15:24:53 +0000 Subject: [PATCH] Fix Basic auth (when under PHP control) for EBCDIC platforms --- sapi/apache/mod_php4.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.50.1