Fixed bug #34478 (Incorrect parsing of url's fragment (#...))
authorDmitry Stogov <dmitry@php.net>
Fri, 16 Sep 2005 15:47:42 +0000 (15:47 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 16 Sep 2005 15:47:42 +0000 (15:47 +0000)
NEWS
ext/soap/php_http.c

diff --git a/NEWS b/NEWS
index d7fea02edb8677f3dc6eb3d420661bc5c0eecc24..6fbd670385c361fdabfe51a3b26a6da61fdeb19c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@ PHP                                                                        NEWS
 - Fixed a bug where stream_get_meta_data() did not return the "uri" element for
   files opened with tmpname(). (Derick)
 - Fixed bug #34518 (Unset doesn't separate container in CV). (Dmitry)
+- Fixed bug #34478 (Incorrect parsing of url's fragment (#...)). (Dmitry)
 - Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed). (Dmitry)
 - Fixed bug #34310 (foreach($arr as $c->d => $x) crashes). (Dmitry)
 - Fixed bug #34302 (date('W') do not return leading zeros for week 1 to 9).
index 607fe040c3e51378bddb217745732dbda5a93718..b9d6f49bf3057606e67a79633fb017f48a66f0bc 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" */