Skip to content

Commit 67c0ee6

Browse files
committed
Use Gem::Version
1 parent 25a09ea commit 67c0ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/http/hp_sys_mgmt_login.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_version(res)
4343

4444
def is_version_tested?(version)
4545
# As of Sep 4 2014, version 7.4 is the latest and that's the last one we've tested
46-
if version < '7.5'
46+
if Gem::Version.new(version) < Gem::Version.new('7.5')
4747
return true
4848
end
4949

0 commit comments

Comments
 (0)