From dd579937e36ec494372d8d99b49d0943ea2b721d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 23 Feb 2017 18:51:11 -0500 Subject: Add helper method to use implode() with HTML escaping --- tests/units/Helper/TextHelperTest.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/units/Helper') diff --git a/tests/units/Helper/TextHelperTest.php b/tests/units/Helper/TextHelperTest.php index 35ed5a1e..abe921fe 100644 --- a/tests/units/Helper/TextHelperTest.php +++ b/tests/units/Helper/TextHelperTest.php @@ -9,6 +9,13 @@ use Kanboard\Model\UserModel; class TextHelperTest extends Base { + public function testImplode() + { + $textHelper = new TextHelper($this->container); + $html = '<img src=x onerror=alert(0)>'; + $this->assertEquals($html, $textHelper->implode(', ', array(''))); + } + public function testMarkdownTaskLink() { $textHelper = new TextHelper($this->container); -- cgit v1.2.3