cvs: php4 /sapi/apache mod_php4.c

From: Date: Wed, 23 May 2001 15:24:54 +0000
Subject: cvs: php4 /sapi/apache mod_php4.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5959@lists.php.net to get a copy of this message
martin Wed May 23 08:24:54 2001 EDT Modified files: /php4/sapi/apache mod_php4.c Log: Fix Basic auth (when under PHP control) for EBCDIC platforms Index: php4/sapi/apache/mod_php4.c diff -u php4/sapi/apache/mod_php4.c:1.102 php4/sapi/apache/mod_php4.c:1.103 --- php4/sapi/apache/mod_php4.c:1.102 Wed May 16 11:28:18 2001 +++ php4/sapi/apache/mod_php4.c Wed May 23 08:24:53 2001 @@ -17,7 +17,7 @@ | PHP 4.0 patches by Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: mod_php4.c,v 1.102 2001/05/16 18:28:18 sterling Exp $ */ +/* $Id: mod_php4.c,v 1.103 2001/05/23 15:24:53 martin Exp $ */ #define NO_REGEX_EXTRA_H #ifdef WIN32 @@ -400,6 +400,9 @@ /* && !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);

« previous php.cvs (#5959) next »