Skip to content

Commit f51feb7

Browse files
committed
Modify get_cookies regular expression
1 parent 5e7f356 commit f51feb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/proto/http/response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_cookies
6767
cookies = ""
6868
if (self.headers.include?('Set-Cookie'))
6969
set_cookies = self.headers['Set-Cookie']
70-
key_vals = set_cookies.scan(/\s?([^, ;]+?)=([^, ;]*?);/)
70+
key_vals = set_cookies.scan(/\s?([^, ;]+?)=([^, ;]*?)[;,]/)
7171
key_vals.each do |k, v|
7272
# Dont downcase actual cookie name as may be case sensitive
7373
name = k.downcase

0 commit comments

Comments
 (0)