diff options
| author | Dmitry Stogov <dmitry@php.net> | 2005-09-16 15:47:42 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2005-09-16 15:47:42 +0000 |
| commit | 746e88e3d51a5d6e0fcb29cebda1dfbfdc35ed67 (patch) | |
| tree | 4b2dae0dbf03bdd8d338924cc2a3ab34c962eeb9 /ext/soap/php_http.c | |
| parent | 213a1768a2f666518f653da951954676a168e226 (diff) | |
| download | php-git-746e88e3d51a5d6e0fcb29cebda1dfbfdc35ed67.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..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" */ |
