From 0f6b6f6169383fad5897fe510e2a8d4b59003a46 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Tue, 9 Jun 2009 20:43:42 +0000 Subject: [PATCH] Allow the equal sign to be used as part of an option value git-svn-id: file:///home/svn/framework3/trunk@6634 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/common.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/common.rb b/lib/msf/ui/common.rb index 3859dd1b3b..65422eb96e 100644 --- a/lib/msf/ui/common.rb +++ b/lib/msf/ui/common.rb @@ -11,7 +11,7 @@ class Common # features def self.process_cli_arguments(framework, argv) argv.delete_if { |assign| - var, val = assign.split(/=/) + var, val = assign.split('=', 2) next if var.nil? or val.nil? @@ -30,4 +30,4 @@ class Common end end -end \ No newline at end of file +end