From e61f2d2ad32e01522aae6b3da77dacbcdf6a205b Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 17 Oct 2007 11:18:49 +0000 Subject: [PATCH] Fixed bug #42637 (SoapFault : Only http and https are allowed). (Bill Moran) --- ext/soap/php_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] != '/') { -- 2.50.1