Merge pull request #2 from mk111/mk111-patch-2

removing line-break filtering on save after editing
pull/3937/head
mk111 4 years ago committed by GitHub
commit aad20f440b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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 = '';

Loading…
Cancel
Save