summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-11-28 09:12:03 +0100
committerAleksander Machniak <alec@alec.pl>2013-11-28 09:12:03 +0100
commitffec857b697ce0a23134f04cf345dc3a8b45a7ae (patch)
treeeb93710b360ef9971d2ce4c699e5aec278d7c83e /tests
parent993eb88d5aaeccd2d60758dd01f27265230e18b7 (diff)
Fix handling of invalid closing tags in HTML messages (#1489446)
Diffstat (limited to 'tests')
-rw-r--r--tests/Framework/Washtml.php13
1 files changed, 13 insertions, 0 deletions
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('|<textarea>test</textarea>|', $washed, "Self-closing textarea (#1489137)");
}
+ /**
+ * Test fixing of invalid closing tags (#1489446)
+ */
+ function test_closing_tag_attrs()
+ {
+ $html = "<a href=\"http://test.com\">test</a href>";
+
+ $washer = new rcube_washtml;
+ $washed = $washer->wash($html);
+
+ $this->assertRegExp('|</a>|', $washed, "Invalid closing tag (#1489446)");
+ }
+
}