diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-04-19 14:22:24 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-04-20 10:56:36 +0200 |
commit | fa10abd6d75aeb9fde1f53cf80116e39577a4555 (patch) | |
tree | 4ff804b92d5b701b6131db3d8c5b3a5262899824 /sapi/phpdbg/phpdbg.c | |
parent | f62571c121ce2874858b5e7dd33642755ee9309c (diff) | |
download | php-git-fa10abd6d75aeb9fde1f53cf80116e39577a4555.tar.gz |
Fix #79491: Search for .user.ini extends up to root dir
The `start` parameter of `php_cgi_ini_activate_user_config` is supposed
to hold the byte offset of the doc root in the given `path`. However,
the current expression which fixes a potential type incompatibility
will ever only evaluate to zero or one, because it uses the *logical*
and operator (`&&`). Furthermore we notice that subtracting one from
`doc_root_len` is not necessary, so there is even no need for the
`start` parameter at all.
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
0 files changed, 0 insertions, 0 deletions