Skip to content

Commit

Permalink
[Legacy] Fix salesagility#319 - Prevent css sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusyerli1 committed Aug 18, 2023
1 parent de3dd6a commit aa47ba3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/legacy/data/SugarBean.php
Original file line number Diff line number Diff line change
Expand Up @@ -2617,6 +2617,11 @@ public function cleanBean()
$type .= $def['dbType'];
}

$purifyHtml = $def['metadata']['purifyHtml'] ?? true;
if ($purifyHtml === false) {
return;
}

if (isset($def['type']) && ($def['type'] == 'html' || $def['type'] == 'longhtml')) {
$this->$key = htmlentities(SugarCleaner::cleanHtml($this->$key, true));
} elseif (
Expand Down

0 comments on commit aa47ba3

Please sign in to comment.