summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-08-10 14:18:31 +0200
committerGitHub <noreply@github.com>2016-08-10 14:18:31 +0200
commit488ad40ba334ca506f07bede97724726eac2b27f (patch)
tree7a850907271a0dd8e5461370aafcddbd63e3eec8 /system/libraries/Form_validation.php
parent28d97168bf82d50440a489efda32b707fbcd1dbd (diff)
parent656fd7eef9624c3c07918b2d573d9ccb6f971c57 (diff)
Merge pull request #4758 from butane/uri_scheme_case
URI schemes are not case-sensitive
Diffstat (limited to 'system/libraries/Form_validation.php')
-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;
}