diff options
author | Andrey Andreev <narf@devilix.net> | 2014-12-05 11:00:11 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-12-05 11:00:11 +0100 |
commit | bfa233f559a50ee0674a209fa56f866edc814fd9 (patch) | |
tree | dfdf0aa87b31db69c7c6646b8bbfbc743797edcd /tests | |
parent | bc11439c5f7fbbb1ef0257f8083c375eeb9dd79c (diff) |
Further changes related to issue #47, PR #3323
- Removed a test that was created specifically for the 'convert programmatic characters to entities' feature.
- Changed filter_uri() to accept by reference and to not return anything as its only purpose now is to trigger a show_error() call.
- Added changelog messages and updated the upgrade instructions.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/codeigniter/core/URI_test.php | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/tests/codeigniter/core/URI_test.php b/tests/codeigniter/core/URI_test.php index 4b1d644e3..adb62f6cb 100644 --- a/tests/codeigniter/core/URI_test.php +++ b/tests/codeigniter/core/URI_test.php @@ -119,26 +119,12 @@ class URI_test extends CI_TestCase { */ // -------------------------------------------------------------------- - public function test_filter_uri() + public function test_filter_uri_passing() { $this->uri->_set_permitted_uri_chars('a-z 0-9~%.:_\-'); - $str_in = 'abc01239~%.:_-'; - $str = $this->uri->filter_uri($str_in); - - $this->assertEquals($str, $str_in); - } - - // -------------------------------------------------------------------- - - public function test_filter_uri_escaping() - { - // ensure escaping even if dodgey characters are permitted - $this->uri->_set_permitted_uri_chars('a-z 0-9~%.:_\-()$'); - - $str = $this->uri->filter_uri('$destroy_app(foo)'); - - $this->assertEquals($str, '$destroy_app(foo)'); + $str = 'abc01239~%.:_-'; + $this->uri->filter_uri($str); } // -------------------------------------------------------------------- |