Escape commit message from XSS and broken markup.

Closes #769
This commit is contained in:
Alex Davyskiba 2015-01-31 11:23:29 +02:00 committed by Dan Cryer
commit 46aae66700
2 changed files with 8 additions and 1 deletions

View file

@ -193,4 +193,11 @@ class Build extends BuildBase
return $rtn;
}
public function getCommitMessage()
{
$rtn = htmlspecialchars($this->data['commit_message']);
return $rtn;
}
}