This commit is contained in:
erwanlr
2019-10-05 20:25:35 +01:00
parent ff339b9a8c
commit 6aa7cda478
3 changed files with 21 additions and 5 deletions

View File

@@ -101,7 +101,7 @@ module WPScan
#
# @return [ String ]
def parse_style_tag(body, tag)
value = body[/^\s*#{Regexp.escape(tag)}:[\t ]*([^\r\n]+)/i, 1]
value = body[/#{Regexp.escape(tag)}:[\t ]*([^\r\n\*]+)/i, 1]
value && !value.strip.empty? ? value.strip : nil
end