Skip to content

Remove unused trust_x_headers parameter and X-File-Name fallback#196

Merged
Kludex merged 4 commits into
Kludex:masterfrom
jhnstrk:trust_x_header
Apr 5, 2026
Merged

Remove unused trust_x_headers parameter and X-File-Name fallback#196
Kludex merged 4 commits into
Kludex:masterfrom
jhnstrk:trust_x_header

Conversation

@jhnstrk

@jhnstrk jhnstrk commented Dec 8, 2024

Copy link
Copy Markdown
Contributor

Use the boolean.

Note that this changes the default behavior but makes it consistent with what the function documentation was declaring.

If we want to maintain behaviour, we may want to expose this in option in parse_form.

@Kludex

Kludex commented Dec 16, 2024

Copy link
Copy Markdown
Owner

Should we actually remove the parameter? 🤔

Do you think this makes sense @jhnstrk ?

@jhnstrk

jhnstrk commented Dec 16, 2024

Copy link
Copy Markdown
Contributor Author

Should we actually remove the parameter? 🤔

Yes I think so, and also remove the X-File-Name fallback. It's not really expected for a mulitpart parser IMO.

@Kludex

Kludex commented Dec 25, 2024

Copy link
Copy Markdown
Owner

Let's drop it then 🙏

Removes the trust_x_headers option for
create_form_parser and associated tests.
@jhnstrk

jhnstrk commented Jan 21, 2025

Copy link
Copy Markdown
Contributor Author

I rebased on the current master and removed trust_x_headers entirely as discussed above.

@Kludex

Kludex commented Apr 5, 2026

Copy link
Copy Markdown
Owner

@hkmj19 I'm deleting your comment given that you are reporting a vulnerability in the wrong channel. Advisories should be reported via https://github.com/Kludex/python-multipart/security/advisories.

Repository owner deleted a comment from hkmj19 Apr 5, 2026
Kludex

This comment was marked as spam.

@Kludex Kludex changed the title Use trust_x_header and test it (fix #195) Remove unused trust_x_headers parameter and X-File-Name fallback Apr 5, 2026

@Kludex Kludex left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry the delay @jhnstrk

@Kludex Kludex merged commit c856319 into Kludex:master Apr 5, 2026
6 checks passed
@Kludex Kludex mentioned this pull request Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants