Skip to content
Snippets Groups Projects
Commit 5a85fddb authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1360 from greezybacon/issue/1292


oops: Properly format text thread bodies

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 01308099 9d944c32
No related branches found
No related tags found
No related merge requests found
...@@ -1404,7 +1404,7 @@ class TextThreadBody extends ThreadBody { ...@@ -1404,7 +1404,7 @@ class TextThreadBody extends ThreadBody {
switch ($output) { switch ($output) {
case 'html': case 'html':
return '<div style="white-space:pre-wrap">' return '<div style="white-space:pre-wrap">'
.Format::clickableurls($this->body).'</div>'; .Format::clickableurls(Format::htmlchars($this->body)).'</div>';
case 'email': case 'email':
return '<div style="white-space:pre-wrap">'.$this->body.'</div>'; return '<div style="white-space:pre-wrap">'.$this->body.'</div>';
case 'pdf': case 'pdf':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment