Skip to content

Commit

Permalink
Merge remote-tracking branch 'alietz/disable-purification'
Browse files Browse the repository at this point in the history
[#200] Disable purification of template field that destroys HTML templates
  • Loading branch information
jensschuppe committed Jun 20, 2024
2 parents 7b3a011 + 4050c12 commit 96640f0
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 96640f0

Please sign in to comment.