Fixes fatal error see BT#9380

1.9.x
Julio Montoya 10 years ago
parent 0c65e9b1be
commit 8da0d49ff5
  1. 4
      main/wiki/wiki.inc.php

@ -278,8 +278,8 @@ class Wiki
$_clean['title'] = Database::escape_string(trim($values['title']));
$_clean['content'] = Database::escape_string($values['content']);
if (api_get_setting('htmlpurifier_wiki') == 'true'){
$purifier = new HTMLPurifier();
$_clean['content'] = $purifier->purify($_clean['content']);
//$purifier = new HTMLPurifier();
$_clean['content'] = Security::remove_XSS($_clean['content']);
}
$_clean['user_id'] = api_get_user_id();
$_clean['assignment']= Database::escape_string($values['assignment']);

Loading…
Cancel
Save