projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7c5eb
)
Fixed basic HTTP authentication for WSDL sub requests.
author
Dmitry Stogov
<dmitry@php.net>
Wed, 1 Feb 2012 12:16:52 +0000
(12:16 +0000)
committer
Dmitry Stogov
<dmitry@php.net>
Wed, 1 Feb 2012 12:16:52 +0000
(12:16 +0000)
ext/soap/php_sdl.c
patch
|
blob
|
history
diff --git
a/ext/soap/php_sdl.c
b/ext/soap/php_sdl.c
index 22b3fc60aa1c8e096c14a9e2a7e4f0c99fd3d361..961dcf29e65737334604d5c10d81ca3990c59b03 100644
(file)
--- 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 &&