[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_1-11915-g26a9bb4
Michal Čihař
nijel at users.sourceforge.net
Mon Jul 25 14:29:20 CEST 2011
The branch, master has been updated
via 26a9bb458129055a49686b227db6f47846de7c31 (commit)
from d9f91b4f5d876a307d516715883505928888a9ed (commit)
- Log -----------------------------------------------------------------
commit 26a9bb458129055a49686b227db6f47846de7c31
Author: Michal Čihař <mcihar at 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 at http://www.phpmyadmin.net/@target]link[/a]'));
}
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list