]> granicus.if.org Git - php/commitdiff
Fix Basic auth (when under PHP control) for EBCDIC platforms
authorMartin Kraemer <martin@php.net>
Wed, 23 May 2001 15:24:53 +0000 (15:24 +0000)
committerMartin Kraemer <martin@php.net>
Wed, 23 May 2001 15:24:53 +0000 (15:24 +0000)
sapi/apache/mod_php4.c

index 1e79701d0f34e8714d75d74a11913f535a3789ed..204ddc101001fee0eba714a2de1efc4851ebcb15 100644 (file)
@@ -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);