MDL-28627 remove buggy and obsolete KSES cleaning

This commit is contained in:
Petr Skoda 2011-10-22 09:25:06 +02:00
parent 3a81b37617
commit 73b309e6a3
10 changed files with 9 additions and 902 deletions

View file

@ -30,21 +30,16 @@ class purifier_test extends UnitTestCase {
public static $includecoverage = array('lib/htmlpurifier/HTMLPurifier.php');
private $enablehtmlpurifier = null;
private $cachetext = null;
function setUp() {
global $CFG;
$this->enablehtmlpurifier = $CFG->enablehtmlpurifier;
$CFG->enablehtmlpurifier = 1;
$this->cachetext = $CFG->cachetext;
$CFG->cachetext = 0;
}
function tearDown() {
global $CFG;
$CFG->enablehtmlpurifier = $this->enablehtmlpurifier;
$CFG->cachetext = $this->cachetext;
}

View file

@ -83,11 +83,6 @@ class web_test extends UnitTestCase {
$this->assertEqual(wikify_links('this is a <a href="http://someaddress.com/query">link</a>'), 'this is a link [ http://someaddress.com/query ]');
}
function test_fix_non_standard_entities() {
$this->assertEqual(fix_non_standard_entities('&#x00A3&#0228'), '&#xA3;&#228;');
$this->assertEqual(fix_non_standard_entities('&#x00A3;&#0228;'), '&#xA3;&#228;');
}
function test_compare_url() {
$url1 = new moodle_url('index.php', array('var1' => 1, 'var2' => 2));
$url2 = new moodle_url('index2.php', array('var1' => 1, 'var2' => 2, 'var3' => 3));