Skip to content

Commit 06fb8f5

Browse files
author
HD Moore
committed
Merge pull request rapid7#1293 from wchen-r7/optint_valid
Fix OptInt's valid?() function
2 parents bfc7c3a + 0347b17 commit 06fb8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/option_container.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def normalize(value)
445445
def valid?(value)
446446
return false if empty_required_value?(value)
447447

448-
if value and not normalize(value).to_s.match(/^\d+$/)
448+
if value and not value.to_s.match(/^\d+$/)
449449
return false
450450
end
451451

0 commit comments

Comments
 (0)