The branch, master has been updated
via d9f91b4f5d876a307d516715883505928888a9ed (commit)
from 42d704eadb906da01850c02e15e45e1c0246a43e (commit)
- Log -----------------------------------------------------------------
commit d9f91b4f5d876a307d516715883505928888a9ed
Author: Michal Čihař <[email protected]>
Date: Mon Jul 25 14:27:07 2011 +0200
Testcase for escaping
-----------------------------------------------------------------------
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 5334162..e44d4f8 100644
--- a/test/libraries/PMA_sanitize_test.php
+++ b/test/libraries/PMA_sanitize_test.php
@@ -62,5 +62,11 @@ class PMA_sanitize_test extends PHPUnit_Framework_TestCase
$this->assertEquals('<strong>strong</strong>',
PMA_sanitize('[b]strong[/b]'));
}
+
+ public function testEscape()
+ {
+ $this->assertEquals('<strong>strong</strong>',
+ PMA_sanitize('[strong]strong[/strong]', true));
+ }
}
?>
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