diff options
author | Vivek Dinesh <vivekdinesh5@gmail.com> | 2016-08-09 19:04:42 +0200 |
---|---|---|
committer | Vivek Dinesh <vivekdinesh5@gmail.com> | 2016-08-09 19:04:42 +0200 |
commit | 4e239a3913d161f560de9e20a3ef291ebf1c16fb (patch) | |
tree | 5c0e4f8f1f2e9d1f0980c638b037b4fd5501b481 | |
parent | a4ed425b218942ed7e60d993325f592f5c24e59e (diff) |
URI schemes are not case sensitive
Signed-off-by: Vivek Dinesh <vivekdinesh5@gmail.com>
-rw-r--r-- | system/libraries/Form_validation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 04445f5b7..d5f67d1da 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -1200,7 +1200,7 @@ class CI_Form_validation { { return FALSE; } - elseif ( ! in_array($matches[1], array('http', 'https'), TRUE)) + elseif ( ! in_array(strtolower($matches[1]), array('http', 'https'), TRUE)) { return FALSE; } |