projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- update property hash values
[m6w6/ext-http]
/
http_auth_api.c
diff --git
a/http_auth_api.c
b/http_auth_api.c
index 386faffcf3eb9fe537569ff4a8e829dbd7111b60..be2f74434322dab6d5d8831378dbdc1a843f948a 100644
(file)
--- a/
http_auth_api.c
+++ b/
http_auth_api.c
@@
-60,10
+60,8
@@
PHP_HTTP_API STATUS _http_auth_credentials(char **user, char **pass TSRMLS_DC)
zval *zauth = NULL;
HTTP_GSC(zauth, "HTTP_AUTHORIZATION", FAILURE);
{
zval *zauth = NULL;
HTTP_GSC(zauth, "HTTP_AUTHORIZATION", FAILURE);
{
- char *decoded, *colon;
int decoded_len;
int decoded_len;
- decoded = php_base64_decode(Z_STRVAL_P(zauth), Z_STRLEN_P(zauth),
- &decoded_len);
+ char *colon, *decoded = php_base64_decode(Z_STRVAL_P(zauth), Z_STRLEN_P(zauth), &decoded_len);
if (colon = strchr(decoded + 6, ':')) {
*user = estrndup(decoded + 6, colon - decoded - 6);
if (colon = strchr(decoded + 6, ':')) {
*user = estrndup(decoded + 6, colon - decoded - 6);