Land #11061, allow the possibilty of empty string values for datastore options in msf5

master
Brent Cook 2019-03-08 09:27:50 -06:00
commit 1bf93ab1bc
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class OptString < OptBase
def valid?(value=self.value, check_empty: true) def valid?(value=self.value, check_empty: true)
value = normalize(value) value = normalize(value)
return false if check_empty && empty_required_value?(value) return false if check_empty && empty_required_value?(value)
return super return super(check_empty: false)
end end
end end