Skip to content

Commit ad983f9

Browse files
committed
allow special characters for cmd.exe
1 parent 749fb70 commit ad983f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Prima/Widget/Link.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ sub open_browser
9999
my ( $self, $url, $btn, $mod ) = @_;
100100

101101
if ( Prima::Application-> get_system_info-> {apc} == apc::Win32) {
102+
$url =~ s/([&^|<>()])/^$1/g;
102103
open UNIQUE_FILE_HANDLE_NEVER_TO_BE_CLOSED, "|start $url";
103104
close UNIQUE_FILE_HANDLE_NEVER_TO_BE_CLOSED if 0;
104105
} elsif ( $^O eq 'darwin') {

0 commit comments

Comments
 (0)