aboutsummaryrefslogtreecommitdiff
path: root/t/htmlize.t
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-02-10 15:24:03 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-02-10 15:24:03 -0500
commitdfd6bb3854c737131b40deba1c6b7b5d7ef2083e (patch)
tree62f2b6f68e3c9d73d17c5f6182a72caf4c38c7a2 /t/htmlize.t
parent852994d950f09748a022a65f94af59f7cafb6df8 (diff)
downloadikiwiki-dfd6bb3854c737131b40deba1c6b7b5d7ef2083e.tar
ikiwiki-dfd6bb3854c737131b40deba1c6b7b5d7ef2083e.tar.gz
fix data:image handling
Diffstat (limited to 't/htmlize.t')
-rwxr-xr-xt/htmlize.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/htmlize.t b/t/htmlize.t
index edf357010..b19dbcf68 100755
--- a/t/htmlize.t
+++ b/t/htmlize.t
@@ -46,11 +46,11 @@ ok(!gotcha(q{<video poster="javascript:alert('GOTCHA')" href="foo.avi">foo</vide
"video poster with javascript");
ok(!gotcha(q{<span style="background: url(javascript:window.location=GOTCHA)">a</span>}),
"CSS script test");
-ok(! gotcha(q{<img src="data:text/javascript:GOTCHA">}),
+ok(! gotcha(q{<img src="data:text/javascript;GOTCHA">}),
"data:text/javascript (jeez!)");
-ok(gotcha(q{<img src="data:text/png:GOTCHA">}), "data:text/png");
-ok(gotcha(q{<img src="data:text/gif:GOTCHA">}), "data:text/gif");
-ok(gotcha(q{<img src="data:text/jpeg:GOTCHA">}), "data:text/jpeg");
+ok(gotcha(q{<img src="data:image/png;base64,GOTCHA">}), "data:image/png");
+ok(gotcha(q{<img src="data:image/gif;base64,GOTCHA">}), "data:image/gif");
+ok(gotcha(q{<img src="data:image/jpeg;base64,GOTCHA">}), "data:image/jpeg");
ok(gotcha(q{<p>javascript:alert('GOTCHA')</p>}),
"not javascript AFAIK (but perhaps some web browser would like to
be perverse and assume it is?)");