diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-02-05 16:26:57 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-02-05 16:26:57 +0100 |
commit | 5bc800f946e39ae0c5afcca79d6ae0af561fc536 (patch) | |
tree | ea158317dbd3d74463ca65cad83c8612bd9448ab /tests | |
parent | 344943f6ce40bb40470dba4e2ba56b366d493617 (diff) | |
parent | 3dd136f26e36d0f453649e77300b408cfa8491e4 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Framework/Washtml.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Framework/Washtml.php b/tests/Framework/Washtml.php index 088ac4a8c..6f4aa9783 100644 --- a/tests/Framework/Washtml.php +++ b/tests/Framework/Washtml.php @@ -25,4 +25,18 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase $this->assertNotRegExp('/vbscript:/', $washed, "Remove vbscript: links"); } + /** + * Test fixing of invalid href (#1488940) + */ + function test_href() + { + $html = "<p><a href=\"\nhttp://test.com\n\">Firefox</a>"; + + $washer = new rcube_washtml; + + $washed = $washer->wash($html); + + $this->assertRegExp('|href="http://test.com">|', $washed, "Link href with newlines (#1488940)"); + } + } |