use tr instead of gsub
parent
31a2afb586
commit
bcf78e6067
|
@ -822,7 +822,7 @@ module Exploit::Remote::HttpClient
|
||||||
}
|
}
|
||||||
|
|
||||||
res.headers.each_pair do |k,v|
|
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
|
next unless hname.length > 0
|
||||||
|
|
||||||
# Set-Cookie > :header_set_cookie => JSESSIONID=AAASD23423452
|
# Set-Cookie > :header_set_cookie => JSESSIONID=AAASD23423452
|
||||||
|
|
Loading…
Reference in New Issue