From da733da4c40fddfa32cabf33c06bb2af50d8f179 Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Fri, 12 Jan 2007 10:40:02 +0100 Subject: [PATCH] [svn r10689] temporaly desactivate the rule for allowed HTML tags according to the user status style tags didn't work when using add_html_editor() function with FormValidator --- main/inc/lib/formvalidator/FormValidator.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/formvalidator/FormValidator.class.php b/main/inc/lib/formvalidator/FormValidator.class.php index 7d84f6fc7c..780dc64f2d 100644 --- a/main/inc/lib/formvalidator/FormValidator.class.php +++ b/main/inc/lib/formvalidator/FormValidator.class.php @@ -142,12 +142,12 @@ EOT; { $html_type = $_SESSION['status'] == COURSEMANAGER ? TEACHER_HTML_FULLPAGE : STUDENT_HTML_FULLPAGE; //First *filter* the HTML (markup, indenting, ...) - $this->applyFilter($name,'html_filter_teacher_fullpage'); + //$this->applyFilter($name,'html_filter_teacher_fullpage'); } else { //First *filter* the HTML (markup, indenting, ...) - $this->applyFilter($name,'html_filter_teacher'); + //$this->applyFilter($name,'html_filter_teacher'); } if($required) { @@ -159,7 +159,7 @@ EOT; $el->fullPage = true; } //Add rule to check not-allowed HTML - $this->addRule($name,get_lang('SomeHTMLNotAllowed'),'html',$html_type); + //$this->addRule($name,get_lang('SomeHTMLNotAllowed'),'html',$html_type); } /**