summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codeigniter/core')
-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 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')
+ );
}
// --------------------------------------------------------------------