summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-04-08 14:39:02 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-04-08 14:39:02 +0200
commit5aab24e5473566b6eda119a6ab0ba7e3e286366f (patch)
tree066a6c836881f223bdc464fd3ae2f23bc4928bf5
parent1e9a59ab89ed69d4bf3cd2d306e1c3f8821f4018 (diff)
parent5e3ee8418e67643a145e01bb2248a70a191f2d02 (diff)
Merge branch 'master' of github.com:roundcube/roundcubemail
-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 08cf147c8..f98a8a781 100644
--- a/tests/Framework/Washtml.php
+++ b/tests/Framework/Washtml.php
@@ -138,4 +138,17 @@ class Framework_Washtml extends PHPUnit_Framework_TestCase
$this->assertRegExp('|font-size: 10px|', $washed, "Font-size style");
}
+ /**
+ * Test handling of unicode chars in style (#1489777)
+ */
+ function test_style_unicode()
+ {
+ $html = "<html><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
+ <body><span style='font-family:\"新細明體\",\"serif\";color:red'>令全場爆滿</span></body></html>";
+
+ $washer = new rcube_washtml;
+ $washed = $washer->wash($html);
+
+ $this->assertRegExp('|style=\'font-family: "新細明體","serif"; color: red\'|', $washed, "Unicode chars in style attribute (#1489697)");
+ }
}