diff --git a/main/document/edit_document.php b/main/document/edit_document.php index 10e996f1ac..5218b5e33a 100755 --- a/main/document/edit_document.php +++ b/main/document/edit_document.php @@ -266,7 +266,8 @@ if (isset($_POST['comment'])) { /* WYSIWYG HTML EDITOR - Program Logic */ if ($is_allowed_to_edit) { if (isset($_POST['formSent']) && $_POST['formSent'] == 1 && !empty($document_id)) { - $content = isset($_POST['content']) ? trim(str_replace(["\r", "\n"], '', stripslashes($_POST['content']))) : null; + //$content = isset($_POST['content']) ? trim(str_replace(["\r", "\n"], '', stripslashes($_POST['content']))) : null; + $content = isset($_POST['content']) ? trim(stripslashes($_POST['content'])) : null; $content = Security::remove_XSS($content, COURSEMANAGERLOWSECURITY); if ($dir == '/') { $dir = '';