Beautify use of Regexp

bug/bundler_fix
jvazquez-r7 2014-01-02 12:54:54 -06:00
parent 832b0455f1
commit 3bccaa407f
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class Metasploit3 < Msf::Post
return
end
unless driver =~ /#{Regexp.escape(expand_path("%SYSTEMROOT%"))}/i
unless driver =~ Regexp.new(Regexp.escape(expand_path("%SYSTEMROOT%")), Regexp::IGNORECASE)
print_error("The driver must be inside %SYSTEMROOT%.")
return
end