]> granicus.if.org Git - php/commit
Fix #78929: plus signs in cookie values are converted to spaces
authorKachalin Alexey <kachalin.alexey@gmail.com>
Thu, 12 Dec 2019 10:49:06 +0000 (11:49 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 12 Dec 2019 13:21:46 +0000 (14:21 +0100)
commit79376ab209f61be03bbf8c1b6177c18261767da8
tree7e888c61aa5a8a90ac06359522f2fd44c00ebe74
parentbe89a5c7f191b319c11b3b487a1366e20a1fdc17
Fix #78929: plus signs in cookie values are converted to spaces

We switch the cookie value parsing function from `php_url_decode()` to
`php_raw_url_decode()`, so that cookie values are now parsed according
to RFC 6265, section 4.1.1.  We also refactor to remove duplicate code
without changing the execution flow.
NEWS
main/php_variables.c
tests/basic/bug78929.phpt [new file with mode: 0644]