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 /ext/soap/php_http.c | |
parent | e4a4ab60c76faad8de24d6e3a1efb5cace882715 (diff) | |
download | php-git-27763b36665f2dea411c5c660e2809db63e289d2.tar.gz |
Fixed bug #34478 (Incorrect parsing of url's fragment (#...))
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 8 |
1 files changed, 8 insertions, 0 deletions
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" */ |