diff options
author | Florian Pritz <bluewind@xinu.at> | 2019-09-27 22:38:06 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2019-09-27 22:38:06 +0200 |
commit | 9067e097cc335b4ec207d7c8c6a819741446a163 (patch) | |
tree | 3770e3d890ae5d968a1873ff55c40cedcc5a88af /system/libraries/Form_validation.php | |
parent | 3db68e2e947b6299a15ed5277b65b49ad1768415 (diff) | |
parent | b73eb19aed66190c10c9cad476da7c36c271d6dc (diff) |
Merge tag '3.1.11' of git://github.com/bcit-ci/CodeIgniter into dev
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 1bd55499a..fdf202010 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -1208,6 +1208,13 @@ class CI_Form_validation { $str = $matches[2]; } + // Apparently, FILTER_VALIDATE_URL doesn't reject digit-only names for some reason ... + // See https://github.com/bcit-ci/CodeIgniter/issues/5755 + if (ctype_digit($str)) + { + return FALSE; + } + // PHP 7 accepts IPv6 addresses within square brackets as hostnames, // but it appears that the PR that came in with https://bugs.php.net/bug.php?id=68039 // was never merged into a PHP 5 branch ... https://3v4l.org/8PsSN |