]> 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:49 +0000 (11:18 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 17 Oct 2007 11:18:49 +0000 (11:18 +0000)
ext/soap/php_http.c

index a6112bebe6b5caca7e643984ed4c4407d5235767..439cd640ad802bc4d6e133bbbb40af17550f4a59 100644 (file)
@@ -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] != '/') {