diff options
author | Andrey Andreev <narf@devilix.net> | 2016-08-10 14:23:42 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-08-10 14:23:42 +0200 |
commit | 9180a1264dc536c34e5cc8a0e44bb399a8ba484f (patch) | |
tree | 96a5e3be8bdf2c036af5b0a7c9a4bb7944cba784 /tests/codeigniter/libraries | |
parent | e33c82d62e5a56b2fe46096420de838eb74553e8 (diff) |
Add changelog entry and a test case for #4758
Diffstat (limited to 'tests/codeigniter/libraries')
-rw-r--r-- | tests/codeigniter/libraries/Form_validation_test.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/codeigniter/libraries/Form_validation_test.php b/tests/codeigniter/libraries/Form_validation_test.php index 905f663e2..0815300e6 100644 --- a/tests/codeigniter/libraries/Form_validation_test.php +++ b/tests/codeigniter/libraries/Form_validation_test.php @@ -259,6 +259,9 @@ class Form_validation_test extends CI_TestCase { // https://github.com/bcit-ci/CodeIgniter/issues/4415 $this->assertTrue($this->form_validation->valid_url('http://[::1]/ipv6')); + // URI scheme case-sensitivity: https://github.com/bcit-ci/CodeIgniter/pull/4758 + $this->assertTrue($this->form_validation->valid_url('HtTp://127.0.0.1/')); + $this->assertFalse($this->form_validation->valid_url('htt://www.codeIgniter.com')); $this->assertFalse($this->form_validation->valid_url('')); $this->assertFalse($this->form_validation->valid_url('code igniter')); |