removing exception raising because it breaks the framework

git-svn-id: https://beef.googlecode.com/svn/trunk@570 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
mosse.benjamin
2010-11-23 22:22:32 +00:00
parent 43cdce7142
commit d535f3b1c1

View File

@@ -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