The branch, master has been updated via 42d704eadb906da01850c02e15e45e1c0246a43e (commit) from c2b530c005105fc0615ee04ebb5c1c550917a8f4 (commit)
- Log ----------------------------------------------------------------- commit 42d704eadb906da01850c02e15e45e1c0246a43e Author: Michal Čihař mcihar@suse.cz Date: Mon Jul 25 14:21:38 2011 +0200
Test case for invalid target
-----------------------------------------------------------------------
Summary of changes: test/libraries/PMA_sanitize_test.php | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/test/libraries/PMA_sanitize_test.php b/test/libraries/PMA_sanitize_test.php index 5d18355..5334162 100644 --- a/test/libraries/PMA_sanitize_test.php +++ b/test/libraries/PMA_sanitize_test.php @@ -33,6 +33,12 @@ class PMA_sanitize_test extends PHPUnit_Framework_TestCase PMA_sanitize('[a@./Documentation.html]doc[/a]')); }
+ public function testLinkDocTarget() + { + $this->assertEquals('[a@./Documentation.html@INVALID9]doc</a>', + PMA_sanitize('[a@./Documentation.html@INVALID9]doc[/a]')); + } + public function testLinkDocXss() { $this->assertEquals('[a@./Documentation.html" onmouseover="alert(foo)"]doc</a>',
hooks/post-receive