Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Framework/Washtml.php')
-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 399955c34..b49007fde 100644
--- a/tests/Framework/Washtml.php
+++ b/tests/Framework/Washtml.php
@@ -50,6 +50,19 @@ class Framework_Washtml extends PHPUnit\Framework\TestCase
}
/**
+ * Test data:image with newlines (#8613)
+ */
+ function test_data_image_with_newline()
+ {
+ $html = "<p><img src=\"data:image/png;base64,12345\n\t67890\" /></p>";
+
+ $washer = new rcube_washtml;
+ $washed = $washer->wash($html);
+
+ $this->assertSame("<p><img src=\"data:image/png;base64,12345\n\t67890\" /></p>", $this->cleanupResult($washed));
+ }
+
+ /**
* Test XSS in area's href (#5240)
*/
function test_href_area()