From a190c3941a7bed4274fe08e92ba4ce368c1c837f Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 19 Mar 2008 03:47:16 +0000 Subject: Added safe_mode to testing framework and soem tests. --- tests/safe_mode/script_tags.html | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tests/safe_mode/script_tags.html (limited to 'tests/safe_mode/script_tags.html') diff --git a/tests/safe_mode/script_tags.html b/tests/safe_mode/script_tags.html new file mode 100644 index 0000000..cb2abfa --- /dev/null +++ b/tests/safe_mode/script_tags.html @@ -0,0 +1,33 @@ +

This should be stripped/escaped in safe_mode. +

+<script> +alert("Hello world!") +</script> + +

With blank lines. +

+<script> + +alert("Hello world!") + +</script> + +

Now with some weirdness +

+

<script <!-- +alert("Hello world!") +</script <>` +

+

Try another way. +

+<script <!-- +alert("Hello world!") +</script <> + +This time with blank lines. + +<script <!-- + +alert("Hello world!") + +</script <> \ No newline at end of file -- cgit v1.2.3