diff options
author | Andrey Andreev <narf@devilix.net> | 2014-05-23 13:41:32 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-05-23 13:41:32 +0200 |
commit | 487d1ae060e6414e0a59c9752a4914fa3b8c4710 (patch) | |
tree | bb47aa08b77dbfb23fc8ed1b32746a5941a49342 /tests/codeigniter | |
parent | ce7634ff96a35e252035847907b53395e4ff6087 (diff) |
Fix #3057
Diffstat (limited to 'tests/codeigniter')
-rw-r--r-- | tests/codeigniter/core/Security_test.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/codeigniter/core/Security_test.php b/tests/codeigniter/core/Security_test.php index d4d6be4b5..c80c3d65a 100644 --- a/tests/codeigniter/core/Security_test.php +++ b/tests/codeigniter/core/Security_test.php @@ -97,6 +97,12 @@ class Security_test extends CI_TestCase { $decoded = $this->security->entity_decode($encoded); $this->assertEquals('<div>Hello <b>Booya</b></div>', $decoded); + + // Issue #3057 (https://github.com/EllisLab/CodeIgniter/issues/3057) + $this->assertEquals( + '&foo should not include a semicolon', + $this->security->entity_decode('&foo should not include a semicolon') + ); } // -------------------------------------------------------------------- |