From 746e88e3d51a5d6e0fcb29cebda1dfbfdc35ed67 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 16 Sep 2005 15:47:42 +0000 Subject: [PATCH] Fixed bug #34478 (Incorrect parsing of url's fragment (#...)) --- NEWS | 1 + ext/soap/php_http.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/NEWS b/NEWS index d7fea02edb..6fbd670385 100644 --- 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). diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 607fe040c3..b9d6f49bf3 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -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" */ -- 2.50.1