fix version info with multiple components (e.g. was "5951 $, 5773")
git-svn-id: file:///home/svn/framework3/trunk@6035 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
704a92d43a
commit
3949663db1
|
@ -213,7 +213,9 @@ class Module
|
|||
# Return the module's version information.
|
||||
#
|
||||
def version
|
||||
module_info['Version'].gsub(/\$Rev.s.on:\s+|\s+\$$/, '')
|
||||
module_info['Version'].split(/,/).map { |ver|
|
||||
ver.gsub(/\$Rev.s.on:\s+|\s+\$$/, '')
|
||||
}.join(',')
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -754,4 +756,4 @@ SiteReference = Msf::Module::SiteReference
|
|||
Platform = Msf::Module::Platform
|
||||
Target = Msf::Module::Target
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue