summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-10-22 15:46:10 +0200
committerAndrey Andreev <narf@devilix.net>2016-10-22 15:46:10 +0200
commit038ae9a085e1970ea26eeaf566cfae31c2802a90 (patch)
treebfd4e34cea286ccf8673ce11b2cd7cc3920ce6b4 /tests
parent6c6ee1a1e73b3f8a93ca031107bec35e56272a0a (diff)
parenteea02de557834006c5d6a0bfccca7f39e75bf3a8 (diff)
Merge branch 'security/entity_decode' into 3.1-stable
Diffstat (limited to 'tests')
-rw-r--r--tests/codeigniter/core/Security_test.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/codeigniter/core/Security_test.php b/tests/codeigniter/core/Security_test.php
index 8328c37cb..cbf0285ec 100644
--- a/tests/codeigniter/core/Security_test.php
+++ b/tests/codeigniter/core/Security_test.php
@@ -270,6 +270,12 @@ class Security_test extends CI_TestCase {
$this->assertEquals('<div>Hello <b>Booya</b></div>', $decoded);
+ $this->assertEquals('colon:', $this->security->entity_decode('colon&colon;'));
+ $this->assertEquals("NewLine\n", $this->security->entity_decode('NewLine&NewLine;'));
+ $this->assertEquals("Tab\t", $this->security->entity_decode('Tab&Tab;'));
+ $this->assertEquals("lpar(", $this->security->entity_decode('lpar&lpar;'));
+ $this->assertEquals("rpar)", $this->security->entity_decode('rpar&rpar;'));
+
// Issue #3057 (https://github.com/bcit-ci/CodeIgniter/issues/3057)
$this->assertEquals(
'&foo should not include a semicolon',