diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-08-14 18:27:16 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-08-14 18:27:16 +0200 |
commit | e7cd99ca9e81e4f516576fff5954f68ce005cf7a (patch) | |
tree | 3e252fc97c6181723f26071a276ed7eb269762c9 | |
parent | 94d778f25c290c7dfe8aae613bcdc0f04642e3b1 (diff) |
Fixed failing test
-rw-r--r-- | tests/MailFunc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/MailFunc.php b/tests/MailFunc.php index ab0074ef2..05f26324e 100644 --- a/tests/MailFunc.php +++ b/tests/MailFunc.php @@ -61,7 +61,7 @@ class MailFunc extends PHPUnit_Framework_TestCase $this->assertRegExp('/<style [^>]+>/', $html2, "Allow styles in safe mode"); $this->assertRegExp('#src="http://evilsite.net/mailings/ex3.jpg"#', $html2, "Allow external images in HTML (safe mode)"); $this->assertRegExp("#url\('?http://evilsite.net/newsletter/image/bg/bg-64.jpg'?\)#", $html2, "Allow external images in CSS (safe mode)"); - $css = '<link rel="stylesheet" .+_u=tmp-[a-z0-9]+\.css.+_action=modcss'; + $css = '<link rel="stylesheet" .+_action=modcss.+_u=tmp-[a-z0-9]+\.css'; $this->assertRegExp('#'.$css.'#Ui', $html2, "Filter (anonymized) external styleseehts with utils/modcss.inc"); } |