Commit 0cdec16
Sanitize pktapplayer query param in Packet/Index controller
Fixes a TypeError when pktapplayer is submitted as a plain string
(e.g. ?pktapplayer= or ?pktapplayer=1) instead of an array, which
would fail assignment to the array-typed model property. Now handles
both string and array input, and strips empty strings before casting
to int so blank values don't silently become zero.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5e6f78a commit 0cdec16
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments