nils_for_nulls -> Msf::DBManager::Import::MetasploitFramework

MSP-11124
bug/bundler_fix
Luke Imhoff 2014-10-15 13:59:03 -05:00
parent 27c5cf8887
commit bed98fe43b
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
2 changed files with 5 additions and 5 deletions

View File

@ -366,11 +366,6 @@ module Msf::DBManager::Import
return obj
end
# Convert the string "NULL" to actual nil
def nils_for_nulls(str)
str == "NULL" ? nil : str
end
def report_import_note(wspace,addr)
if @import_filedata.kind_of?(Hash) && @import_filedata[:filename] && @import_filedata[:filename] !~ /msfe-nmap[0-9]{8}/
report_note(

View File

@ -6,4 +6,9 @@ module Msf::DBManager::Import::MetasploitFramework
include Msf::DBManager::Import::MetasploitFramework::Credential
include Msf::DBManager::Import::MetasploitFramework::XML
include Msf::DBManager::Import::MetasploitFramework::Zip
# Convert the string "NULL" to actual nil
def nils_for_nulls(str)
str == "NULL" ? nil : str
end
end