Skip to content
Snippets Groups Projects
Commit cec8be8e authored by JediKev's avatar JediKev Committed by Peter Rotich
Browse files

issue: TextThreadEntryBody Sanitize

This addresses an issue introduced with a3d896c8 where TextThreadEntryBodies
are not keeping their new line characters causing the email format to appear
wonky. This balances the entry and then htmlchars it to ensure no XSS.
parent e64c94c1
Branches
Tags
No related merge requests found
......@@ -2542,7 +2542,7 @@ class TextThreadEntryBody extends ThreadEntryBody {
}
function getClean() {
return Format::htmlchars(Format::stripEmptyLines(parent::getClean()), true);
return Format::htmlchars(Format::html_balance(Format::stripEmptyLines(parent::getClean())));
}
function prepend($what) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment