Skip to content

Commit 1fc7e45

Browse files
authored
validate and cast formId to integer in RequestListener (#524)
1 parent 19a1037 commit 1fc7e45

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

UPGRADE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Upgrade Notes
22

3+
## 5.3.2
4+
- **[BUGFIX]** Validate and cast formId to integer in RequestListener
5+
36
## 5.3.1
47
- **[BUGFIX]** [FUNNEL] Add channel context handling to FunnelWorker [#518](https://github.com/dachcom-digital/pimcore-formbuilder/issues/518)
58
- **[BUGFIX]** [FUNNEL] Render `_token` in funnel base template if available and renderable

src/EventListener/Core/RequestListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ protected function detectFormIdByType(array $values, string $formMatchType = sel
229229
}
230230

231231
if (isset($parameters['formId'])) {
232-
return $parameters['formId'];
232+
return is_numeric($parameters['formId']) ? (int) $parameters['formId'] : null;
233233
}
234234
}
235235

0 commit comments

Comments
 (0)