X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_auth_api.c;fp=http_auth_api.c;h=645d335ee5ade720303c62a49bc41c101b46add8;hp=a2c54ae56f20f986e05f4163b22a1ca9d9d8056e;hb=4f8c51464143f79fd4367c386e5108361ce83a42;hpb=2ee2c71823e82571f3441e80b6b13d35f5b0373c diff --git a/http_auth_api.c b/http_auth_api.c index a2c54ae..645d335 100644 --- a/http_auth_api.c +++ b/http_auth_api.c @@ -61,7 +61,7 @@ PHP_HTTP_API STATUS _http_auth_basic_credentials(char **user, char **pass TSRMLS HTTP_GSC(zauth, "HTTP_AUTHORIZATION", FAILURE); { int decoded_len; - char *colon, *decoded = php_base64_decode(Z_STRVAL_P(zauth), Z_STRLEN_P(zauth), &decoded_len); + char *colon, *decoded = (char *) php_base64_decode((const unsigned char *) Z_STRVAL_P(zauth), Z_STRLEN_P(zauth), &decoded_len); if (colon = strchr(decoded + 6, ':')) { *user = estrndup(decoded + 6, colon - decoded - 6);