diff options
| author | Dmitry Stogov <dmitry@php.net> | 2005-09-16 15:48:30 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2005-09-16 15:48:30 +0000 |
| commit | 27763b36665f2dea411c5c660e2809db63e289d2 (patch) | |
| tree | 699b8c0d835d4c5c93e7551c1cda59f33a1c8e88 | |
| parent | e4a4ab60c76faad8de24d6e3a1efb5cace882715 (diff) | |
| download | php-git-27763b36665f2dea411c5c660e2809db63e289d2.tar.gz | |
Fixed bug #34478 (Incorrect parsing of url's fragment (#...))
| -rw-r--r-- | NEWS | 1 | ||||
| -rw-r--r-- | ext/soap/php_http.c | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -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) diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 607fe040c3..6da386f7dd 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" */ |
