The branch, master has been updated via 26a9bb458129055a49686b227db6f47846de7c31 (commit) from d9f91b4f5d876a307d516715883505928888a9ed (commit)
- Log ----------------------------------------------------------------- commit 26a9bb458129055a49686b227db6f47846de7c31 Author: Michal Čihař mcihar@suse.cz Date: Mon Jul 25 14:30:23 2011 +0200
Unset variables which can poison output
-----------------------------------------------------------------------
Summary of changes: test/libraries/PMA_sanitize_test.php | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/test/libraries/PMA_sanitize_test.php b/test/libraries/PMA_sanitize_test.php index e44d4f8..55d5a77 100644 --- a/test/libraries/PMA_sanitize_test.php +++ b/test/libraries/PMA_sanitize_test.php @@ -23,6 +23,8 @@ class PMA_sanitize_test extends PHPUnit_Framework_TestCase
public function testLink() { + unset($GLOBALS['server']); + unset($GLOBALS['lang']); $this->assertEquals('<a href="./url.php?url=http%3A%2F%2Fwww.phpmyadmin.net%2F" target="target">link</a>', PMA_sanitize('[a@http://www.phpmyadmin.net/@target%5Dlink%5B/a]')); }
hooks/post-receive