Merge pull request #10971 from snipe/fixes/potential_xss_in_depreciation
Escape checkout target name
This commit is contained in:
commit
0abc108686
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ class DepreciationReportTransformer
|
|||
'purchase_cost' => Helper::formatCurrencyOutput($asset->purchase_cost),
|
||||
'book_value' => Helper::formatCurrencyOutput($depreciated_value),
|
||||
'monthly_depreciation' => $monthly_depreciation,
|
||||
'checked_out_to' => $checkout_target,
|
||||
'checked_out_to' => ($checkout_target) ? e($checkout_target) : null,
|
||||
'diff' => Helper::formatCurrencyOutput($diff),
|
||||
'number_of_months' => ($asset->model && $asset->model->depreciation) ? e($asset->model->depreciation->months) : null,
|
||||
'depreciation' => (($asset->model) && ($asset->model->depreciation)) ? e($asset->model->depreciation->name) : null,
|
||||
|
|
Loading…
Add table
Reference in a new issue