Browse Source

Merge pull request #16183 from Richard-Strittmatter/patch-1

Add note about url() not allowing local URLs
Mark Story 4 years ago
parent
commit
d90e57ae8d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Validation/Validation.php

+ 2 - 0
src/Validation/Validation.php

@@ -1167,6 +1167,8 @@ class Validation
      * - an optional query string (get parameters)
      * - an optional fragment (anchor tag) as defined in RFC 3986
      *
+     * Does not allow local network addresses, such as "localhost".
+     *
      * @param mixed $check Value to check
      * @param bool $strict Require URL to be prefixed by a valid scheme (one of http(s)/ftp(s)/file/news/gopher)
      * @return bool Success