Commit 5fe0f96
Validate Content-Type value set by set_content_type
set_content_type assigned to @Header directly, bypassing the CR/LF
validation in set_field, so a crafted media type or parameter could
inject header lines.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 4f13ea5 commit 5fe0f96
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
| 785 | + | |
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
454 | 459 | | |
455 | 460 | | |
456 | 461 | | |
| |||
0 commit comments