summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorVivek Dinesh <vivekdinesh5@gmail.com>2016-08-09 19:04:42 +0200
committerVivek Dinesh <vivekdinesh5@gmail.com>2016-08-09 19:04:42 +0200
commit4e239a3913d161f560de9e20a3ef291ebf1c16fb (patch)
tree5c0e4f8f1f2e9d1f0980c638b037b4fd5501b481 /system/libraries
parenta4ed425b218942ed7e60d993325f592f5c24e59e (diff)
URI schemes are not case sensitive
Signed-off-by: Vivek Dinesh <vivekdinesh5@gmail.com>
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Form_validation.php2
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;
}