Skip to content

Commit

Permalink
Added test cases for plugin pages that breaks string_sanitize_url().
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5710 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
amyreese committed Oct 22, 2008
1 parent 67313fa commit b4704a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_string_sanitize_url.php
Expand Up @@ -43,6 +43,8 @@
'abc.php?abc=def&z=xyz#a',
'abc.php?abc=def&z=<script>alert("foo")</script>z#a',
'abc.php?abc=def&z=z#<script>alert("foo")</script>a',
'plugin.php?page=Source/index',
'plugin.php?page=Source/list&id=1',
$my_path.'abc.php',
$my_path.'abc.php#a',
$my_path.'abc.php?abc=def',
Expand All @@ -51,6 +53,8 @@
$my_path.'abc.php?abc=def&z=xyz#a',
$my_path.'abc.php?abc=def&z=<script>alert("foo")</script>z#a',
$my_path.'abc.php?abc=def&z=z#<script>alert("foo")</script>a',
$my_path.'plugin.php?page=Source/index',
$my_path.'plugin.php?page=Source/list&id=1',
'http://www.test.my.url/'
);

Expand Down

0 comments on commit b4704a7

Please sign in to comment.