]> granicus.if.org Git - php/commitdiff
Fixed bug #42637 (SoapFault : Only http and https are allowed). (Bill Moran)
authorDmitry Stogov <dmitry@php.net>
Wed, 17 Oct 2007 11:18:34 +0000 (11:18 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 17 Oct 2007 11:18:34 +0000 (11:18 +0000)
NEWS
ext/soap/php_http.c

diff --git a/NEWS b/NEWS
index 2987f39a0ee73c6dc7b2eae36999f8ef11fc7e9d..fa9108a9f0001ef4e31ca0111424d69b60f0b40c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -50,6 +50,7 @@ PHP                                                                        NEWS
 - Fixed bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines). (Nuno)
 - Fixed bug #42657 (ini_get() returns incorrect value when default is NULL).
   (Jani)
+- Fixed bug #42637 (SoapFault : Only http and https are allowed). (Bill Moran)
 - Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric
   characters). (Jani)
 - Fixed bug #37911 (preg_replace_callback() ignores named groups). (Nuno)
index a868a41efef2a89cc3848156640c0c33a1632a4b..282dfdbafc4db58a84ab436e00a94966a33607e6 100644 (file)
@@ -918,7 +918,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] != '/') {