Skip to content

Commit

Permalink
Revert htmlspecialchars for CKEditor (#621)
Browse files Browse the repository at this point in the history
Revert the security restrictions deployed with HTMLSPECIALCHARS for description fields using CKEditor, as it strips all HTML formatting
  • Loading branch information
RussH committed Jun 13, 2023
1 parent de6bfd1 commit e6256ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/joborders/JobOrdersUI.php
Expand Up @@ -766,7 +766,7 @@ private function onAdd()
$department = $this->getTrimmedInput('department', $_POST);
$maxRate = $this->getSanitisedInput('maxRate', $_POST);
$salary = $this->getSanitisedInput('salary', $_POST);
$description = $this->getSanitisedInput('description', $_POST);
$description = $this->getTrimmedInput('description', $_POST);
$notes = $this->getSanitisedInput('notes', $_POST);

/* Bail out if any of the required fields are empty. */
Expand Down Expand Up @@ -1110,7 +1110,7 @@ private function onEdit()
$department = $this->getTrimmedInput('department', $_POST);
$maxRate = $this->getSanitisedInput('maxRate', $_POST);
$salary = $this->getSanitisedInput('salary', $_POST);
$description = $this->getSanitisedInput('description', $_POST);
$description = $this->getTrimmedInput('description', $_POST);
$notes = $this->getSanitisedInput('notes', $_POST);

/* Bail out if any of the required fields are empty. */
Expand Down

0 comments on commit e6256ed

Please sign in to comment.