mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +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.Mix' => 'nasty',
|
||||||
'Pancake.Served' => '0',
|
'Pancake.Served' => '0',
|
||||||
'Toppings.Syrup' => '0',
|
'Toppings.Syrup' => '0',
|
||||||
'Toppings.Flavor' => "Bug\\'s juice",
|
'Toppings.Flavor' => "juice",
|
||||||
'Toppings.Strawberries' => '999',
|
'Toppings.Strawberries' => '999',
|
||||||
'Toppings.Calories' => '',
|
'Toppings.Calories' => '',
|
||||||
'Null_Toppings.Calories' => '1',
|
'Null_Toppings.Calories' => '1',
|
||||||
@ -408,15 +408,17 @@ class HTMLPurifier_ConfigTest extends UnitTestCase
|
|||||||
$config_expect = HTMLPurifier_Config::create(array(
|
$config_expect = HTMLPurifier_Config::create(array(
|
||||||
'Pancake.Served' => false,
|
'Pancake.Served' => false,
|
||||||
'Toppings.Syrup' => false,
|
'Toppings.Syrup' => false,
|
||||||
'Toppings.Flavor' => "Bug's juice",
|
'Toppings.Flavor' => "juice",
|
||||||
'Toppings.Strawberries' => 999,
|
'Toppings.Strawberries' => 999,
|
||||||
'Toppings.Calories' => null
|
'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);
|
$this->assertEqual($config_expect, $config_result);
|
||||||
|
|
||||||
|
/*
|
||||||
|
MAGIC QUOTES NOT TESTED!!!
|
||||||
|
|
||||||
$get = array(
|
$get = array(
|
||||||
'breakfast' => array(
|
'breakfast' => array(
|
||||||
@ -428,7 +430,7 @@ class HTMLPurifier_ConfigTest extends UnitTestCase
|
|||||||
));
|
));
|
||||||
$config_result = HTMLPurifier_Config::loadArrayFromForm($get, 'breakfast', true, false);
|
$config_result = HTMLPurifier_Config::loadArrayFromForm($get, 'breakfast', true, false);
|
||||||
$this->assertEqual($config_expect, $config_result);
|
$this->assertEqual($config_expect, $config_result);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_getAllowedDirectivesForForm() {
|
function test_getAllowedDirectivesForForm() {
|
||||||
|
Loading…
Reference in New Issue
Block a user