Aleksander Machniak
2013-02-01 43aeb195c159cac8352f1eeb5148c060ff0b81b6
tests/Framework/Washtml.php
@@ -25,4 +25,18 @@
        $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)");
    }
}