Skip to content

Commit

Permalink
fix(IcalFormatter): more secure formId
Browse files Browse the repository at this point in the history
  • Loading branch information
J9rem committed Oct 5, 2021
1 parent 11be006 commit 5f4c8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bazar/controllers/IcalFormatter.php
Expand Up @@ -51,7 +51,7 @@ public function apiResponse(array $entries, $formId = null, ?array $get = null,
if (!empty($formId) && is_array($formId)) {
$formId = $formId[array_key_first($formId)];
}
if (intval($formId) != $formId) {
if (strval(intval($formId)) !== strval($formId)) {
$formId = null;
}
if (empty($filename)) {
Expand Down

0 comments on commit 5f4c8e1

Please sign in to comment.