diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-05-13 09:36:52 +0200 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2021-01-04 01:19:18 -0800 |
commit | b132da7f9df39c1774997f21016c522b676a6ab0 (patch) | |
tree | 0f463e558dbd208f5ced3e61ef4934aea4386e74 /ext/calendar/tests/bug55797_1.phpt | |
parent | aab23282fc7089450a04c5146082a630c21bc7e8 (diff) | |
download | php-git-b132da7f9df39c1774997f21016c522b676a6ab0.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.
Diffstat (limited to 'ext/calendar/tests/bug55797_1.phpt')
0 files changed, 0 insertions, 0 deletions