From 3098cd410d3d6698fd87f28359fee9324e7bb380 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Mon, 1 Aug 2016 13:04:47 +0200 Subject: [PATCH] Format code, --- main/blog/blog.php | 10 +-- main/course_progress/index.php | 26 +++++--- main/inc/lib/api.lib.php | 4 +- main/inc/lib/blog.lib.php | 11 +++- main/inc/lib/statistics.lib.php | 64 ++++++++++++------- .../CoreBundle/Entity/CourseRequest.php | 2 + 6 files changed, 75 insertions(+), 42 deletions(-) diff --git a/main/blog/blog.php b/main/blog/blog.php index 8b3d0a254b..4c449bf2bd 100755 --- a/main/blog/blog.php +++ b/main/blog/blog.php @@ -35,7 +35,7 @@ $action = isset($_GET['action']) ? $_GET['action'] : null; */ $safe_post_file_comment = isset($_POST['post_file_comment']) ? Security::remove_XSS($_POST['post_file_comment']) : null; -$safe_comment_text = isset($_POST['comment_text']) ? Security::remove_XSS(stripslashes(api_html_entity_decode($_POST['comment_text'])), COURSEMANAGERLOWSECURITY) : null; +$safe_comment_text = isset($_POST['comment_text']) ? Security::remove_XSS($_POST['comment_text']) : null; $safe_comment_title = isset($_POST['comment_title']) ? Security::remove_XSS($_POST['comment_title']) : null; $safe_task_name = isset($_POST['task_name']) ? Security::remove_XSS($_POST['task_name']) : null; $safe_task_description = isset($_POST['task_description']) ? Security::remove_XSS($_POST['task_description']) : null; @@ -311,7 +311,7 @@ Display::display_introduction_section(TOOL_BLOGS);
- +
@@ -322,7 +322,7 @@ Display::display_introduction_section(TOOL_BLOGS); ?>
- +
@@ -336,14 +336,14 @@ Display::display_introduction_section(TOOL_BLOGS);
- +
- +
get_default_thematic_plan_title(); // Only when I see the 3 columns. Avoids double or triple click binding for onclick event -$htmlHeadXtra[] = ''; -$htmlHeadXtra[] = '