From 534600eb7c10c930fd8d0ddd273a0ad1aa9953f0 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 16 Oct 2007 20:19:27 +0000 Subject: More Performant Cookie Regexp for Integration tests. [Ola Bini] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/integration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/integration.rb b/actionpack/lib/action_controller/integration.rb index f8e9c36fd0..26f6126120 100644 --- a/actionpack/lib/action_controller/integration.rb +++ b/actionpack/lib/action_controller/integration.rb @@ -288,7 +288,7 @@ module ActionController end (@headers['set-cookie'] || [] ).each do |string| - name, value = string.match(/^(.*?)=(.*?);/)[1,2] + name, value = string.match(/^([^=]*)=([^;]*);/)[1,2] @cookies[name] = value end -- cgit v1.2.3