To prevent malicious web servers from reading arbitrary files from the client, files must now be opened explicitly by the user in order to upload their contents in form submission. For example, instead of:
browser["upload"] = "/path/to/file"
you would now use:
browser["upload"] = open("/path/to/file", "rb")
This remediates CVE-2023-34457. Our thanks to @e-c-d for reporting and helping to fix the vulnerability!
Main changes
Added support for Python 3.11.
Allow submitting a form with no submit element. This can be achieved by passing submit=False to StatefulBrowser.submit_selected. Thanks @alexreg! [#480]
To prevent malicious web servers from reading arbitrary files from the
client, files must now be opened explicitly by the user in order to
upload their contents in form submission. For example, instead of:
browser["upload"] = "/path/to/file"
you would now use:
browser["upload"] = open("/path/to/file", "rb")
This remediates
CVE-2023-34457 <https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4>__.
Our thanks to @e-c-d for reporting and helping to fix the vulnerability!
Main changes
Added support for Python 3.11.
Allow submitting a form with no submit element. This can be achieved by
passing submit=False to StatefulBrowser.submit_selected. Thanks
@alexreg!
[[#480](https://github.com/MechanicalSoup/MechanicalSoup/issues/480) <https://github.com/MechanicalSoup/MechanicalSoup/pull/411__]
Version 1.2
Main changes
Added support for Python 3.10.
Add support for HTML form-associated elements (i.e. input elements that are
associated with a form by a form attribute, but are not a child element
of the form.)
[[#380](https://github.com/MechanicalSoup/MechanicalSoup/issues/380) <https://github.com/MechanicalSoup/MechanicalSoup/issues/380>__]
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/SteeltoeOSS/Samples/network/alerts).
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps mechanicalsoup from 1.2.0 to 1.3.0.
Release notes
Sourced from mechanicalsoup's releases.
Changelog
Sourced from mechanicalsoup's changelog.
... (truncated)
Commits
16238f4
Release 1.3.0d57c4a2
Merge pull request from GHSA-x456-3ccm-m6j4b9c8a0c
Switch Actions from ubuntu-latest to ubuntu-20.04 (#413)3f0ffc9
Add support for Python 3.11 (#412)1fdd0f6
Merge pull request #411 from alexreg/update_statee095bbe
Update docs forStatefulBrowser.submit_selected
d5bdc3d
Add support for no button toStatefulBrowser.submit_selected
7b1609c
Update docs forForm.choose_submit
beb2eaa
Standardize file descriptor variable name5ca417c
Fix CodeQL warnings (#409)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/SteeltoeOSS/Samples/network/alerts).