summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-11-17 23:11:15 +0100
committerNikita Popov <nikita.ppv@gmail.com>2017-11-17 23:18:05 +0100
commit0e097f2c96ce31b16fa371981045f224e5a37160 (patch)
tree9f88951905eaaeba26279d326f12db5ffd11bf41 /ext/zip/php_zip.c
parent1ed08f9877b224b51078a0993f7faf52d432f4bd (diff)
downloadphp-git-0e097f2c96ce31b16fa371981045f224e5a37160.tar.gz
Fixed bug #75535
The sizeof()s for Content-Length and Transfer-Encoding were missing the trailing ":". Apart from being generally wrong, this no longer verified that the header actually contains a colon, leading to the null http_header_value being used. Additionally, in the interest of being defensive, also make sure that http_header_value is non-null by setting it to the end of the header line (effectively an empty string) if there is no colon. If the following conditions are correct, this value is not going to be used though.
Diffstat (limited to 'ext/zip/php_zip.c')
0 files changed, 0 insertions, 0 deletions