summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-09-17 14:55:57 +0200
committerAndrey Andreev <narf@devilix.net>2015-09-17 14:55:57 +0200
commit088e57db3808f78ee89def94c6ce95b571a88427 (patch)
treef4e3962be08c3960694c95a87c77e5aded7695b0 /tests/codeigniter
parent3ceb14a4325a8a3d47747dff3d50fbc392fc3206 (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')
-rw-r--r--tests/codeigniter/core/Security_test.php1
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('&lt;unclosedTag', $this->security->xss_clean('<unclosedTag'));
$this->assertEquals('&lt;blink&gt;', $this->security->xss_clean('<blink>'));
$this->assertEquals('<fubar>', $this->security->xss_clean('<fubar>'));