fixes issue 341
git-svn-id: https://beef.googlecode.com/svn/trunk@1036 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -10,7 +10,7 @@ module API
|
||||
# Calls a API fire against a certain class / module (c) method (m) with n parameters (*args)
|
||||
#
|
||||
def self.fire(c, m, *args)
|
||||
if self.verify_api_path(c, m)
|
||||
if self.verify_api_path(c, m) and c.ancestors[0].to_s > "BeEF::API"
|
||||
method = self.get_api_path(c, m)
|
||||
c.extended_in_modules.each do |mod|
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user