Skip to content

Commit fc016fe

Browse files
author
Brent Cook
committed
Land rapid7#4629, @wchen-r7's proper fixes for rapid7#4616 and rapid7#3798
2 parents 01bcd72 + 52ca6b5 commit fc016fe

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/msf/core/option_container.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,6 @@ def normalize(value)
527527
return Regexp.compile(value)
528528
end
529529

530-
def default
531-
@default.to_s
532-
end
533-
534530
def display_value(value)
535531
if value.kind_of?(Regexp)
536532
return value.source

modules/auxiliary/scanner/http/scraper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def initialize
2727
register_options(
2828
[
2929
OptString.new('PATH', [ true, "The test path to the page to analize", '/']),
30-
OptRegexp.new('PATTERN', [ true, "The regex to use (default regex is a sample to grab page title)", %r{<title>(.*)</title>}i])
30+
OptRegexp.new('PATTERN', [ true, "The regex to use (default regex is a sample to grab page title)", '<title>(.*)</title>'])
3131

3232
], self.class)
3333

0 commit comments

Comments
 (0)