Changed vuln data references to url
This commit is contained in:
@@ -159,7 +159,7 @@ def json(file)
|
||||
begin
|
||||
JSON.parse(content)
|
||||
rescue => e
|
||||
puts "[ERROR] In JSON file parsing #{e} #{e.backtrace}"
|
||||
#puts "[ERROR] In JSON file parsing #{e} #{e.backtrace}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -46,10 +46,4 @@ class WpItem
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
# @return [ String ]
|
||||
def identifier
|
||||
@name
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -11,5 +11,10 @@ class WpPlugin < WpItem
|
||||
@vulns_file
|
||||
end
|
||||
|
||||
# @return [ String ]
|
||||
def identifier
|
||||
@name
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,6 +10,10 @@ class WpTheme < WpItem
|
||||
end
|
||||
@vulns_file
|
||||
end
|
||||
|
||||
|
||||
# @return [ String ]
|
||||
def identifier
|
||||
@name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user