commit | e33c82d62e5a56b2fe46096420de838eb74553e8 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Wed Aug 10 15:18:31 2016 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Wed Aug 10 15:19:22 2016 +0300 |
tree | 840d6d4e0953d5587198a07a3350f9c2dfabdd2f | |
parent | 878e23f8883b2510d573850deb7dca5761cc1848 [diff] [blame] |
Merge pull request #4758 from butane/uri_scheme_case URI schemes are not case-sensitive
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 25dc0d4..61f0298 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php
@@ -1200,7 +1200,7 @@ { return FALSE; } - elseif ( ! in_array($matches[1], array('http', 'https'), TRUE)) + elseif ( ! in_array(strtolower($matches[1]), array('http', 'https'), TRUE)) { return FALSE; }