refactoring

This commit is contained in:
Christian Mehlmauer
2012-09-21 23:37:31 +02:00
parent 3590f5ed2f
commit 082235abb5
14 changed files with 47 additions and 56 deletions

View File

@@ -176,7 +176,8 @@ class WpscanOptions
if value =~ /u/
@enumerate_usernames = true
# Check for usernames range
if matches = %r{\[([\d]+)-([\d]+)\]}.match(value)
matches = %r{\[([\d]+)-([\d]+)\]}.match(value)
if matches
@enumerate_usernames_range = (matches[1].to_i..matches[2].to_i)
end
end