Skip to content

Commit

Permalink
Merge pull request #10971 from snipe/fixes/potential_xss_in_depreciation
Browse files Browse the repository at this point in the history
Escape checkout target name
  • Loading branch information
snipe committed Apr 24, 2022
2 parents ef7f21e + f623d05 commit 0abc108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Transformers/DepreciationReportTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function transformAsset(Asset $asset)
'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,
Expand Down

0 comments on commit 0abc108

Please sign in to comment.