mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed basic HTTP authentication for WSDL sub requests.
This commit is contained in:
parent
43a0ee73a1
commit
0750f6aeed
1 changed files with 2 additions and 2 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue