The branch, master has been updated
       via  26a9bb458129055a49686b227db6f47846de7c31 (commit)
      from  d9f91b4f5d876a307d516715883505928888a9ed (commit)


- Log -----------------------------------------------------------------
commit 26a9bb458129055a49686b227db6f47846de7c31
Author: Michal Čihař <[email protected]>
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]link[/a]'));
     }


hooks/post-receive
-- 
phpMyAdmin

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to