Skip to content

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

Merged
Kludex merged 4 commits intoKludex: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 intoKludex:masterfrom
jhnstrk:trust_x_header

Conversation

@jhnstrk
Copy link
Copy Markdown
Contributor

@jhnstrk jhnstrk commented Dec 8, 2024

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
Copy link
Copy Markdown
Owner

Kludex commented Dec 16, 2024

Should we actually remove the parameter? 🤔

Do you think this makes sense @jhnstrk ?

@jhnstrk
Copy link
Copy Markdown
Contributor Author

jhnstrk commented Dec 16, 2024

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
Copy link
Copy Markdown
Owner

Kludex commented Dec 25, 2024

Let's drop it then 🙏

Removes the trust_x_headers option for
create_form_parser and associated tests.
@jhnstrk
Copy link
Copy Markdown
Contributor Author

jhnstrk commented Jan 21, 2025

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

@Kludex
Copy link
Copy Markdown
Owner

Kludex commented Apr 5, 2026

@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
Copy link
Copy Markdown
Owner

@Kludex Kludex left a comment

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