summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTjerk Meesters <datibbaw@php.net>2014-09-04 06:58:04 +0800
committerTjerk Meesters <datibbaw@php.net>2014-09-04 06:58:04 +0800
commitfa08ff924513d10ecd450e590865dc2926371f3a (patch)
tree242736d44e1c4ec95b65abf48ac3476684f22f84
parentb85b78db4f84a0e5a4fd4d874fe2e7329e7a740e (diff)
parent9befa8c5f7570808dbf31004ea33534cd61b7383 (diff)
downloadphp-git-fa08ff924513d10ecd450e590865dc2926371f3a.tar.gz
Fixed #67955: SoapClient prepends 0-byte to cookie names
-rw-r--r--ext/soap/php_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 2a5679a439..4a5829fadb 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -830,7 +830,7 @@ try_again:
(zend_hash_index_find(Z_ARRVAL_PP(data), 2, (void**)&tmp) == FAILURE ||
in_domain(phpurl->host,Z_STRVAL_PP(tmp))) &&
(use_ssl || zend_hash_index_find(Z_ARRVAL_PP(data), 3, (void**)&tmp) == FAILURE)) {
- smart_str_appendl(&soap_headers, key, key_len);
+ smart_str_appendl(&soap_headers, key, key_len-1);
smart_str_appendc(&soap_headers, '=');
smart_str_appendl(&soap_headers, Z_STRVAL_PP(value), Z_STRLEN_PP(value));
smart_str_appendc(&soap_headers, ';');