From c6bdc3fa148e53aea65e7b8576fde981f3c2b03e Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sat, 2 Apr 2016 13:18:23 -0500 Subject: [PATCH] fix the path quoting in open_webrtc_browser --- lib/rex/compat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rex/compat.rb b/lib/rex/compat.rb index 24b94fb1d0..4a4564a7a5 100644 --- a/lib/rex/compat.rb +++ b/lib/rex/compat.rb @@ -167,7 +167,7 @@ def self.open_webrtc_browser(url='http://google.com/') paths.each do |path| if File.exists?(path) args = (path =~ /chrome\.exe/) ? "--allow-file-access-from-files" : "" - system("#{path} #{args} #{url}") + system("\"#{path}\" #{args} \"#{url}\"") return true end end