mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 15:28:40 +00:00
Remove magic quotes test: it fails in systems that have magic quotes disabled.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1241 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
0bfa42f9b7
commit
3d02a2a7d4
@ -395,7 +395,7 @@ class HTMLPurifier_ConfigTest extends UnitTestCase
|
||||
'Pancake.Mix' => 'nasty',
|
||||
'Pancake.Served' => '0',
|
||||
'Toppings.Syrup' => '0',
|
||||
'Toppings.Flavor' => "Bug\\'s juice",
|
||||
'Toppings.Flavor' => "juice",
|
||||
'Toppings.Strawberries' => '999',
|
||||
'Toppings.Calories' => '',
|
||||
'Null_Toppings.Calories' => '1',
|
||||
@ -408,15 +408,17 @@ class HTMLPurifier_ConfigTest extends UnitTestCase
|
||||
$config_expect = HTMLPurifier_Config::create(array(
|
||||
'Pancake.Served' => false,
|
||||
'Toppings.Syrup' => false,
|
||||
'Toppings.Flavor' => "Bug's juice",
|
||||
'Toppings.Flavor' => "juice",
|
||||
'Toppings.Strawberries' => 999,
|
||||
'Toppings.Calories' => null
|
||||
));
|
||||
|
||||
$config_result = HTMLPurifier_Config::loadArrayFromForm($get, 'breakfast', array('Pancake.Served', 'Toppings', '-Toppings.Protected'), true);
|
||||
$config_result = HTMLPurifier_Config::loadArrayFromForm($get, 'breakfast', array('Pancake.Served', 'Toppings', '-Toppings.Protected'));
|
||||
|
||||
$this->assertEqual($config_expect, $config_result);
|
||||
|
||||
/*
|
||||
MAGIC QUOTES NOT TESTED!!!
|
||||
|
||||
$get = array(
|
||||
'breakfast' => array(
|
||||
@ -428,7 +430,7 @@ class HTMLPurifier_ConfigTest extends UnitTestCase
|
||||
));
|
||||
$config_result = HTMLPurifier_Config::loadArrayFromForm($get, 'breakfast', true, false);
|
||||
$this->assertEqual($config_expect, $config_result);
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
function test_getAllowedDirectivesForForm() {
|
||||
|
Loading…
Reference in New Issue
Block a user