fix version info with multiple components (e.g. was "5951 $, 5773")

git-svn-id: file:///home/svn/framework3/trunk@6035 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2008-12-21 04:18:17 +00:00
parent 704a92d43a
commit 3949663db1
1 changed files with 4 additions and 2 deletions

View File

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