diff options
author | Andrey Andreev <narf@devilix.net> | 2015-09-17 14:55:57 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-09-17 14:55:57 +0200 |
commit | 088e57db3808f78ee89def94c6ce95b571a88427 (patch) | |
tree | f4e3962be08c3960694c95a87c77e5aded7695b0 /tests/codeigniter/core | |
parent | 3ceb14a4325a8a3d47747dff3d50fbc392fc3206 (diff) |
Don't allow open-ended tags to pass through xss_clean()
This was a regression caused by the previous commit
Diffstat (limited to 'tests/codeigniter/core')
-rw-r--r-- | tests/codeigniter/core/Security_test.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/codeigniter/core/Security_test.php b/tests/codeigniter/core/Security_test.php index 7dfdb64c1..b04d25891 100644 --- a/tests/codeigniter/core/Security_test.php +++ b/tests/codeigniter/core/Security_test.php @@ -130,6 +130,7 @@ class Security_test extends CI_TestCase { public function test_xss_clean_sanitize_naughty_html_tags() { + $this->assertEquals('<unclosedTag', $this->security->xss_clean('<unclosedTag')); $this->assertEquals('<blink>', $this->security->xss_clean('<blink>')); $this->assertEquals('<fubar>', $this->security->xss_clean('<fubar>')); |