HOR-285 Now sanitizing input for Process titles.
This commit is contained in:
@@ -66,6 +66,15 @@ class Workflow extends Handler
|
|||||||
$data['PRO_CATEGORY'] = array_key_exists('PRO_CATEGORY', $data) ? $data['PRO_CATEGORY'] : "";
|
$data['PRO_CATEGORY'] = array_key_exists('PRO_CATEGORY', $data) ? $data['PRO_CATEGORY'] : "";
|
||||||
|
|
||||||
try {
|
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);
|
self::log("Create Process with data:", $data);
|
||||||
|
|
||||||
//validate if process with specified name already exists
|
//validate if process with specified name already exists
|
||||||
|
|||||||
Reference in New Issue
Block a user