From aeb0573a1bde06771728472300b09844366abd55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20FEUGA?= Date: Wed, 18 Oct 2017 16:11:23 +0200 Subject: [PATCH] [FIX] Bypass cookie validation --- lib/cookiejar/cookie_validation.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/cookiejar/cookie_validation.rb b/lib/cookiejar/cookie_validation.rb index e73dd89..5bda5ad 100644 --- a/lib/cookiejar/cookie_validation.rb +++ b/lib/cookiejar/cookie_validation.rb @@ -261,9 +261,12 @@ def self.validate_cookie(request_uri, cookie) # The request-host is a HDN (not IP address) and has the form HD, # where D is the value of the Domain attribute, and H is a string # that contains one or more dots. - unless domains_match cookie_host, uri - errors << 'Domain is inappropriate based on request URI hostname' - end + ### + # MonkeyPatch + # + ###unless domains_match cookie_host, uri + ### errors << 'Domain is inappropriate based on request URI hostname' + ###end # The Port attribute has a "port-list", and the request-port was # not in the list.