diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-05-13 09:36:52 +0200 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2021-01-05 10:30:56 -0300 |
commit | b7f837381ef642d7fb369bfd0069e7525d4c22ea (patch) | |
tree | 8de23ef20e6d78666a4439f8b081aa08b5e7c3ac /sapi/phpdbg/phpdbg_webdata_transfer.c | |
parent | b4b4a75afccde07724c39f8e8eb6217bab1db8bd (diff) | |
download | php-git-b7f837381ef642d7fb369bfd0069e7525d4c22ea.tar.gz |
Fix #77423: parse_url() will deliver a wrong host to user
To avoid that `parse_url()` returns an erroneous host, which would be
valid for `FILTER_VALIDATE_URL`, we make sure that only userinfo which
is valid according to RFC 3986 is treated as such.
For consistency with the existing url parsing code, we use ctype
functions, although that is not necessarily correct.
(cherry picked from commit b132da7f9df3)
Diffstat (limited to 'sapi/phpdbg/phpdbg_webdata_transfer.c')
0 files changed, 0 insertions, 0 deletions