Skip to content
Snippets Groups Projects
Commit bca3d537 authored by Jared Hancock's avatar Jared Hancock
Browse files

Assume text from the web user interface is not html

parent fc3dc050
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,10 @@ class Thread {
//Add ticket Id.
$vars['ticketId'] = $this->getTicketId();
// DELME: When HTML / rich-text is supported
$vars['title'] = Format::htmlchars($vars['title']);
$vars['body'] = Format::htmlchars($vars['body']);
return Note::create($vars, $errors);
}
......@@ -154,6 +158,10 @@ class Thread {
$vars['ticketId'] = $this->getTicketId();
$vars['staffId'] = 0;
// DELME: When HTML / rich-text is supported
$vars['title'] = Format::htmlchars($vars['title']);
$vars['body'] = Format::htmlchars($vars['body']);
return Message::create($vars, $errors);
}
......@@ -161,6 +169,10 @@ class Thread {
$vars['ticketId'] = $this->getTicketId();
// DELME: When HTML / rich-text is supported
$vars['title'] = Format::htmlchars($vars['title']);
$vars['body'] = Format::htmlchars($vars['body']);
return Response::create($vars, $errors);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment