use tr instead of gsub

GSoC/Meterpreter_Web_Console
Kent 'picat' Gruber 2018-09-17 09:45:52 -04:00
parent 31a2afb586
commit bcf78e6067
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ module Exploit::Remote::HttpClient
}
res.headers.each_pair do |k,v|
hname = k.to_s.downcase.gsub('-', '_').gsub(/[^a-z0-9_]+/, '')
hname = k.to_s.downcase.tr('-', '_').gsub(/[^a-z0-9_]+/, '')
next unless hname.length > 0
# Set-Cookie > :header_set_cookie => JSESSIONID=AAASD23423452