mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 02:57:01 +00:00
Updates for task request filters
This commit is contained in:
@@ -161,6 +161,10 @@ class StoreTaskRequest extends Request
|
||||
|
||||
}
|
||||
|
||||
if(isset($input['description']) && is_string($input['description'])) {
|
||||
$input['description'] = str_ireplace(['</sc', 'file:/', 'iframe', '<embed', '<embed', '<object', '<object', '127.0.0.1', 'localhost', '<?xml encoding="UTF-8">', '/etc/'], "", $input['description']);
|
||||
}
|
||||
|
||||
/* Ensure the project is related */
|
||||
if (array_key_exists('project_id', $input) && isset($input['project_id'])) {
|
||||
$project = Project::withTrashed()->where('id', $input['project_id'])->company()->first();
|
||||
|
||||
@@ -136,6 +136,10 @@ class UpdateTaskRequest extends Request
|
||||
$input['status_id'] = $this->decodePrimaryKey($input['status_id']);
|
||||
}
|
||||
|
||||
if(isset($input['description']) && is_string($input['description'])) {
|
||||
$input['description'] = str_ireplace(['</sc', 'file:/', 'iframe', '<embed', '<embed', '<object', '<object', '127.0.0.1', 'localhost', '<?xml encoding="UTF-8">', '/etc/'], "", $input['description']);
|
||||
}
|
||||
|
||||
if (isset($input['documents'])) {
|
||||
unset($input['documents']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user