diff options
author | Dmitry Stogov <dmitry@php.net> | 2012-02-01 12:16:52 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2012-02-01 12:16:52 +0000 |
commit | 0750f6aeed5ac33ad23ac604b9181e3e4449b20c (patch) | |
tree | 52ef81b7e0874bcc83d01e7a808a56f1f1566819 /ext/soap/php_sdl.c | |
parent | 43a0ee73a1717d90cfe9b123db2d6f7f9bb6baae (diff) | |
download | php-git-0750f6aeed5ac33ad23ac604b9181e3e4449b20c.tar.gz |
Fixed basic HTTP authentication for WSDL sub requests.
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r-- | ext/soap/php_sdl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 26f03a8084..370b1fa04b 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -237,11 +237,11 @@ void sdl_set_uri_credentials(sdlCtx *ctx, char *uri TSRMLS_DC) s = strstr(ctx->sdl->source, "://"); if (!s) return; s = strchr(s+3, '/'); - l1 = s - ctx->sdl->source; + l1 = s ? (s - ctx->sdl->source) : strlen(ctx->sdl->source); s = strstr((char*)uri, "://"); if (!s) return; s = strchr(s+3, '/'); - l2 = s - (char*)uri; + l2 = s ? (s - (char*)uri) : strlen((char*)uri); if (l1 != l2) { /* check for http://...:80/ */ if (l1 > 11 && |