Commit 988c560
Limit the number of parts allowed for auth token (#8122)
## What changed?
This PR aims to add a limit to the number of parts when splitting an
`Authorization` header `Bearer $token` values.
## Why?
This is useful for limiting potential abuses from maliciously crafted
header values.
## How did you test it?
- [x] built
- [x] run locally and tested manually
- [x] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)
## Potential risks
I don't think there's any major risk here?1 parent ed81e7c commit 988c560
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
0 commit comments