Skip to content

Commit 72d631a

Browse files
committed
Land rapid7#6745, open_webrtc_browser fix for Windows
2 parents f7dd326 + c6bdc3f commit 72d631a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/compat.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def self.open_webrtc_browser(url='http://google.com/')
167167
paths.each do |path|
168168
if File.exists?(path)
169169
args = (path =~ /chrome\.exe/) ? "--allow-file-access-from-files" : ""
170-
system("#{path} #{args} #{url}")
170+
system("\"#{path}\" #{args} \"#{url}\"")
171171
return true
172172
end
173173
end

0 commit comments

Comments
 (0)