Commit bc4bf4b
committed
fix(frontend-manage): reject non-positive or fractional created-element ids
Align the postMessage payload sanitizer with the server-side
confirmedElementSchema bound (z.number().int().positive()): a created
question-pool element id is always a positive integer, so the client-side
boundary validation now rejects fractional and non-positive ids instead of
accepting any finite number.1 parent d20348b commit bc4bf4b
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments