Skip to content

Commit

Permalink
[#200] Disable purification of template field that destroys HTML temp…
Browse files Browse the repository at this point in the history
…lates
  • Loading branch information
jensschuppe committed Jun 20, 2024
1 parent 22b08e9 commit f3720bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CRM/Admin/Form/DonrecProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,16 @@ public function validate() {
/**
* Process the form submission.
*/

/**
* {@inheritDoc}
*/
protected function getFieldsToExcludeFromPurification(): array {
// Prevent HTML template from being sanitized.
// @see \CRM_Core_Form::setPurifiedDefaults()
return ['template'];
}

public function postProcess() {
$session = CRM_Core_Session::singleton();

Expand Down

0 comments on commit f3720bb

Please sign in to comment.