From: Dmitry Stogov Date: Fri, 16 Sep 2005 15:48:30 +0000 (+0000) Subject: Fixed bug #34478 (Incorrect parsing of url's fragment (#...)) X-Git-Tag: php-5.1.0RC2~241 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27763b36665f2dea411c5c660e2809db63e289d2;p=php Fixed bug #34478 (Incorrect parsing of url's fragment (#...)) --- diff --git a/NEWS b/NEWS index ae6437c47d..cf25ed5e41 100644 --- a/NEWS +++ b/NEWS @@ -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" */