From 5aad55f920ded6a30a61a8a9b90a52da48c79040 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sun, 21 Oct 2012 16:09:09 -0400 Subject: Fixed #153. Two spaces at end of paragraph is not a linebreak. --- tests/safe_mode/inline-html-simple.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests/safe_mode') diff --git a/tests/safe_mode/inline-html-simple.html b/tests/safe_mode/inline-html-simple.html index 981c3a2..1e5df17 100644 --- a/tests/safe_mode/inline-html-simple.html +++ b/tests/safe_mode/inline-html-simple.html @@ -29,8 +29,7 @@ Blah
<!-- Comment -->
 

Just plain comment, with trailing spaces on the line:

-

<!-- foo -->
-

+

<!-- foo -->

Code:

<hr />
 
@@ -38,10 +37,8 @@ Blah

<hr>

<hr/>

<hr />

-

<hr>
-

-

<hr/>
-

+

<hr>

+

<hr/>

<hr />

<hr class="foo" id="bar" />

<hr class="foo" id="bar"/>

-- cgit v1.2.3 From f608517d9e1dee126431aafedabdabaa03ec2937 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 5 Feb 2013 18:50:21 +0100 Subject: Forbid javascript:// URLs in safe mode --- tests/safe_mode/link-targets.html | 2 ++ tests/safe_mode/link-targets.txt | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 tests/safe_mode/link-targets.html create mode 100644 tests/safe_mode/link-targets.txt (limited to 'tests/safe_mode') diff --git a/tests/safe_mode/link-targets.html b/tests/safe_mode/link-targets.html new file mode 100644 index 0000000..768ae5b --- /dev/null +++ b/tests/safe_mode/link-targets.html @@ -0,0 +1,2 @@ +

XSS +See http://security.stackexchange.com/q/30330/1261 for details.

\ No newline at end of file diff --git a/tests/safe_mode/link-targets.txt b/tests/safe_mode/link-targets.txt new file mode 100644 index 0000000..10eebda --- /dev/null +++ b/tests/safe_mode/link-targets.txt @@ -0,0 +1,3 @@ +[XSS](javascript://%0Aalert%28'XSS'%29;) +See http://security.stackexchange.com/q/30330/1261 for details. + -- cgit v1.2.3