Skip to content

Commit aa3d816

Browse files
committed
Fixed WSDL loading using https through proxy
1 parent 18096f4 commit aa3d816

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ext/soap/php_sdl.c

+7-4
Original file line numberDiff line numberDiff line change
@@ -3250,10 +3250,13 @@ sdlPtr get_sdl(zval *this_ptr, char *uri, long cache_wsdl TSRMLS_DC)
32503250
php_stream_context_set_option(context, "http", "proxy", str_proxy);
32513251
zval_ptr_dtor(&str_proxy);
32523252

3253-
MAKE_STD_ZVAL(str_proxy);
3254-
ZVAL_BOOL(str_proxy, 1);
3255-
php_stream_context_set_option(context, "http", "request_fulluri", str_proxy);
3256-
zval_ptr_dtor(&str_proxy);
3253+
if (uri_len < sizeof("https://")-1 ||
3254+
strncasecmp(uri, "https://", sizeof("https://")-1) != 0) {
3255+
MAKE_STD_ZVAL(str_proxy);
3256+
ZVAL_BOOL(str_proxy, 1);
3257+
php_stream_context_set_option(context, "http", "request_fulluri", str_proxy);
3258+
zval_ptr_dtor(&str_proxy);
3259+
}
32573260

32583261
proxy_authentication(this_ptr, &headers TSRMLS_CC);
32593262
}

0 commit comments

Comments
 (0)