summaryrefslogtreecommitdiff
path: root/roundcubemail/tests
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-05 09:51:41 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-05 09:51:41 +0000
commit869b31cb77d2d2eff55e298df0ed99734aa227e2 (patch)
treee318e2b75e38ad2fb83eea1dd2ae5487c9b26bf8 /roundcubemail/tests
parent748f497cb09fccb1eeff25b0bc41f69b44bc0f5c (diff)
- Fix bug in handling of base href and inline content (#1488290)
git-svn-id: https://svn.roundcube.net/trunk@5713 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/tests')
-rw-r--r--roundcubemail/tests/mailfunc.php4
-rw-r--r--roundcubemail/tests/src/htmlbase.txt2
2 files changed, 6 insertions, 0 deletions
diff --git a/roundcubemail/tests/mailfunc.php b/roundcubemail/tests/mailfunc.php
index 1b1bbdf38..2e55d331d 100644
--- a/roundcubemail/tests/mailfunc.php
+++ b/roundcubemail/tests/mailfunc.php
@@ -166,5 +166,9 @@ class rcube_test_mailfunc extends UnitTestCase
$this->assertPattern('|src="http://alec\.pl/dir/img1\.gif"|', $html, "URI base resolving [1]");
$this->assertPattern('|src="http://alec\.pl/dir/img2\.gif"|', $html, "URI base resolving [2]");
$this->assertPattern('|src="http://alec\.pl/img3\.gif"|', $html, "URI base resolving [3]");
+
+ // base resolving exceptions
+ $this->assertPattern('|src="cid:theCID"|', $html, "URI base resolving exception [1]");
+ $this->assertPattern('|src="http://other\.domain\.tld/img3\.gif"|', $html, "URI base resolving exception [2]");
}
}
diff --git a/roundcubemail/tests/src/htmlbase.txt b/roundcubemail/tests/src/htmlbase.txt
index d1ddd5406..eb590748b 100644
--- a/roundcubemail/tests/src/htmlbase.txt
+++ b/roundcubemail/tests/src/htmlbase.txt
@@ -6,5 +6,7 @@
<img src="img1.gif" />
<img src="./img2.gif" />
<img src="../img3.gif" />
+<img src="cid:theCID" />
+<img src="http://other.domain.tld/img3.gif" />
</body>
</html>