From d535f3b1c14714e6c7f3dd50d78ba67603f34699 Mon Sep 17 00:00:00 2001 From: "mosse.benjamin" Date: Tue, 23 Nov 2010 22:22:32 +0000 Subject: [PATCH] removing exception raising because it breaks the framework git-svn-id: https://beef.googlecode.com/svn/trunk@570 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- lib/modules/command.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/modules/command.rb b/lib/modules/command.rb index 42fc7439b..e808be6f9 100644 --- a/lib/modules/command.rb +++ b/lib/modules/command.rb @@ -122,8 +122,7 @@ module BeEF # retrieve the target browser name browser_name = get_browser_detail('BrowserName') - raise WEBrick::HTTPStatus::BadRequest, "browser_name is nil" if browser_name.nil? - return VERIFIED_UNKNOWN if browser_name.eql? 'UNKNOWN' + return VERIFIED_UNKNOWN if browser_name.eql? 'UNKNOWN' or browser_name.nil? # check if the browser is targeted all_browsers_targeted = @target['browser_name'].eql? BeEF::Constants::Browsers::ALL