in reply to Browser::Open Windows metacharacters
Browser::Open tries to use the list form of system to spawn a browser. The problem is that start is a cmd command and not a real executable, so Perl has to fall back to using the shell to launch it - and it doesn't quote the command line correctly in process. This makes Browser::Open a shell injection on Windows.
A proper solution would be either to use Win32::ShellQuote or something similar to build a proper cmd.exe command line on Windows, use Perl version of ShellExecute from WinAPI (is there such a module?) or to fall back to launching browsers directly by their paths, which is not a good idea at all.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Browser::Open Windows metacharacters
by Jenda (Abbot) on Dec 10, 2018 at 00:09 UTC | |
by Athanasius (Archbishop) on Dec 17, 2018 at 04:02 UTC | |
Re^2: Browser::Open Windows metacharacters
by IB2017 (Pilgrim) on Dec 09, 2018 at 21:15 UTC | |
by Anonymous Monk on Dec 09, 2018 at 22:01 UTC | |
by IB2017 (Pilgrim) on Dec 09, 2018 at 22:13 UTC |