ソースを参照

Add note about url() not allowing local URLs

R.Strittmatter 4 年 前
コミット
4bbe7b8cde
1 ファイル変更2 行追加0 行削除
  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