Update regex

GSoC/Meterpreter_Web_Console
Wei Chen 2018-05-10 22:39:49 -05:00
parent caf07116db
commit d3f50f421d
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ module Metasploit
# @return [String] The normalized code.
def self.normalize_code(code, headers)
code = code.lines.map { |line|
if line =~ /^#include <(.+)>$/
if line =~ /^#include <([[:print:]]+)>$/
%Q|<%= headers.include('#{$1}') %>\n|
else
line