From ffec857b697ce0a23134f04cf345dc3a8b45a7ae Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 28 Nov 2013 09:12:03 +0100 Subject: Fix handling of invalid closing tags in HTML messages (#1489446) --- tests/Framework/Washtml.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests') diff --git a/tests/Framework/Washtml.php b/tests/Framework/Washtml.php index cb7234314..0d050ff30 100644 --- a/tests/Framework/Washtml.php +++ b/tests/Framework/Washtml.php @@ -68,4 +68,17 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase $this->assertRegExp('||', $washed, "Self-closing textarea (#1489137)"); } + /** + * Test fixing of invalid closing tags (#1489446) + */ + function test_closing_tag_attrs() + { + $html = "test"; + + $washer = new rcube_washtml; + $washed = $washer->wash($html); + + $this->assertRegExp('||', $washed, "Invalid closing tag (#1489446)"); + } + } -- cgit v1.2.3