| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR backports a security hardening change to webbrowser to prevent option-injection style issues by rejecting URLs that begin with - (after leading whitespace) before passing them to browser launchers.
Changes:
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| Misc/NEWS.d/next/Security/2026-01-16-12-04-49.gh-issue-143930.zYC5x3.rst | Documents the security behavior change in webbrowser.open(). |
| Lib/webbrowser.py | Introduces URL validation and applies it to several browser controllers. |
| Lib/test/test_webbrowser.py | Adds a test ensuring leading-dash inputs are rejected (currently for GenericBrowser). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
(cherry picked from commit 82a24a4) Co-authored-by: Seth Michael Larson <seth@python.org>
Reject leading dashes in webbrowser URLs (pythonGH-143931) (pythonGH-146359) Cherry-picked from Python 3.10: ad4d5ba (cherry picked from commit 82a24a4) Co-authored-by: Seth Michael Larson <seth@python.org>
Reject leading dashes in webbrowser URLs (pythonGH-143931) (pythonGH-146359) (cherry picked from commit 82a24a4) Backported from Python 3.10: ad4d5ba Co-authored-by: Seth Michael Larson <seth@python.org>
| Back | FazBrowse Home | New Git URL |
(cherry picked from commit 82a24a4)