From: Dmitry Stogov Date: Wed, 17 Oct 2007 11:18:49 +0000 (+0000) Subject: Fixed bug #42637 (SoapFault : Only http and https are allowed). (Bill Moran) X-Git-Tag: RELEASE_2_0_0a1~1579 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e61f2d2ad32e01522aae6b3da77dacbcdf6a205b;p=php Fixed bug #42637 (SoapFault : Only http and https are allowed). (Bill Moran) --- diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index a6112bebe6..439cd640ad 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -925,7 +925,7 @@ try_again: efree(http_body); efree(loc); if (new_url->scheme == NULL && new_url->path != NULL) { - new_url->scheme = NULL; + new_url->scheme = phpurl->scheme ? estrdup(phpurl->scheme) : NULL; new_url->host = phpurl->host ? estrdup(phpurl->host) : NULL; new_url->port = phpurl->port; if (new_url->path && new_url->path[0] != '/') {