HOR-285 Now sanitizing input for Process titles.

This commit is contained in:
Chloe Deguzman
2016-03-04 12:45:41 +00:00
parent 591d4f59c4
commit a1cf620cda

View File

@@ -66,6 +66,15 @@ class Workflow extends Handler
$data['PRO_CATEGORY'] = array_key_exists('PRO_CATEGORY', $data) ? $data['PRO_CATEGORY'] : "";
try {
// Check to make sure that there aren't any html sneaking into process titles.
$testTitle = strip_tags($data['PRO_TITLE']);
if($testTitle != $data['PRO_TITLE']) {
$data['PRO_TITLE'] = $testTitle;
}
self::log("Create Process with data:", $data);
//validate if process with specified name already exists