summaryrefslogtreecommitdiff
path: root/roundcubemail/tests
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-03 21:21:26 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-03 21:21:26 +0000
commit9c6ae69d2a75ebc604866e32e1633a320df8f92e (patch)
tree98b10071bcc2003aa40f06f6b348d2eeda8b7a8d /roundcubemail/tests
parentd4830b8c1c46167f9aa0ee154585e01adab11528 (diff)
Adapt test for modcss replacements
git-svn-id: https://svn.roundcube.net/trunk@4489 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/tests')
-rw-r--r--roundcubemail/tests/mailfunc.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/tests/mailfunc.php b/roundcubemail/tests/mailfunc.php
index cc26f7743..dc25f0ce4 100644
--- a/roundcubemail/tests/mailfunc.php
+++ b/roundcubemail/tests/mailfunc.php
@@ -66,9 +66,8 @@ class rcube_test_mailfunc extends UnitTestCase
$this->assertPattern('/<style [^>]+>/', $html2, "Allow styles in safe mode");
$this->assertPattern('#src="http://evilsite.net/mailings/ex3.jpg"#', $html2, "Allow external images in HTML (safe mode)");
$this->assertPattern("#url\('?http://evilsite.net/newsletter/image/bg/bg-64.jpg'?\)#", $html2, "Allow external images in CSS (safe mode)");
-
- $css = '<link rel="stylesheet" type="text/css" href="?_task=utils&amp;_action=modcss&amp;u='.urlencode('http://anysite.net/styles/mail.css').'&amp;c=foo"';
- $this->assertPattern('#'.preg_quote($css).'#', $html2, "Filter external styleseehts with bin/modcss.php");
+ $css = '<link rel="stylesheet" .+_u=tmp-[a-z0-9]+\.css.+_action=modcss';
+ $this->assertPattern('#'.$css.'#Ui', $html2, "Filter (anonymized) external styleseehts with utils/modcss.inc");
}
/**