[3.12] gh-137586: Open external osascript program with absolute path (GH-137584) by miss-islington · Pull Request #148175 · python/cpython (original) (raw)
Open web browser with absolute path
On macOS, web browsers are opened via popen calling osascript. However, if a user has a colliding osascript executable earlier in their PATH, this may fail or cause unwanted behaviour.
Depending on one's environment or level of paranoia, this may be considered a security vulnerability. (cherry picked from commit a0c57a8)
Co-authored-by: Fionn 1897918+fionn@users.noreply.github.com Co-authored-by: Hugo van Kemenade 1324225+hugovk@users.noreply.github.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})