]> granicus.if.org Git - php/commitdiff
Fixed bug #34478 (Incorrect parsing of url's fragment (#...))
authorDmitry Stogov <dmitry@php.net>
Fri, 16 Sep 2005 15:48:30 +0000 (15:48 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 16 Sep 2005 15:48:30 +0000 (15:48 +0000)
NEWS
ext/soap/php_http.c

diff --git a/NEWS b/NEWS
index ae6437c47d138de0c74c1fe46b16eda6c311a069..cf25ed5e41095c6e5849c1f39681b9733a503bd0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,7 @@ PHP                                                                        NEWS
 - Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems.
   (Andrey)
 - Fixed bug #34518 (Unset doesn't separate container in CV). (Dmitry)
+- Fixed bug #34478 (Incorrect parsing of url's fragment (#...)). (Dmitry)
 - Fixed bug #34456 (Possible crash inside pspell extension). (Nuno)
 - Fixed bug #34450 (Segfault when calling mysqli_close() in destructor). (Tony)
 - Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed). (Dmitry)
index 607fe040c3e51378bddb217745732dbda5a93718..6da386f7dd16351d587be87f1d4c00cc0fd07d68 100644 (file)
@@ -400,6 +400,10 @@ try_again:
                        smart_str_appendc(&soap_headers, '?');
                        smart_str_appends(&soap_headers, phpurl->query);
                }
+               if (phpurl->fragment) {
+                       smart_str_appendc(&soap_headers, '#');
+                       smart_str_appends(&soap_headers, phpurl->fragment);
+               }
                smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"
                        "Host: ");
                smart_str_appends(&soap_headers, phpurl->host);
@@ -556,6 +560,10 @@ try_again:
                                                smart_str_appendc(&soap_headers, '?');
                                                smart_str_appends(&soap_headers, phpurl->query);
                                        }
+                                       if (phpurl->fragment) {
+                                               smart_str_appendc(&soap_headers, '#');
+                                               smart_str_appends(&soap_headers, phpurl->fragment);
+                                       }
                                        if (zend_hash_find(Z_ARRVAL_PP(digest), "qop", sizeof("qop"), (void **)&tmp) == SUCCESS &&
                                            Z_TYPE_PP(tmp) == IS_STRING) {
                                        /* TODO: Support for qop="auth-int" */