diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-11-17 23:11:15 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-11-17 23:18:05 +0100 |
commit | 0e097f2c96ce31b16fa371981045f224e5a37160 (patch) | |
tree | 9f88951905eaaeba26279d326f12db5ffd11bf41 /ext/zip/php_zip.c | |
parent | 1ed08f9877b224b51078a0993f7faf52d432f4bd (diff) | |
download | php-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