mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Fix Basic auth (when under PHP control) for EBCDIC platforms
This commit is contained in:
parent
881f74263a
commit
c96d652843
1 changed files with 3 additions and 0 deletions
|
@ -400,6 +400,9 @@ static void init_request_info(SLS_D)
|
||||||
/* && !auth_type(r) */
|
/* && !auth_type(r) */
|
||||||
&& !strcasecmp(getword(r->pool, &authorization, ' '), "Basic")) {
|
&& !strcasecmp(getword(r->pool, &authorization, ' '), "Basic")) {
|
||||||
tmp = uudecode(r->pool, authorization);
|
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, ':');
|
SG(request_info).auth_user = getword_nulls_nc(r->pool, &tmp, ':');
|
||||||
if (SG(request_info).auth_user) {
|
if (SG(request_info).auth_user) {
|
||||||
r->connection->user = pstrdup(r->connection->pool,SG(request_info).auth_user);
|
r->connection->user = pstrdup(r->connection->pool,SG(request_info).auth_user);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue