Fix #81604: Parse_url wrong hostname detection

This commit is contained in:
Christoph M. Becker 2021-11-11 13:01:03 +01:00
parent 6fcf14255c
commit 57f4d8e58f
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -252,11 +252,15 @@ array(3) {
<refsect1 role="notes">
&reftitle.notes;
<note>
<caution>
<para>
This function may not give correct results for relative URLs.
This function may not give correct results for relative or invalid URLs,
and the results may not even match common behavior of HTTP clients.
If URLs from untrusted input need to be parsed, extra validation is
required, e.g. by using <function>filter_var</function> with the
<constant>FILTER_VALIDATE_URL</constant> filter.
</para>
</note>
</caution>
<note>
<para>
This function is intended specifically for the purpose of parsing URLs