mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #81604: Parse_url wrong hostname detection
This commit is contained in:
parent
6fcf14255c
commit
57f4d8e58f
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue