Permalink
Browse files

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
  • Loading branch information...
1 parent cfffedb commit 534600eb7c10c930fd8d0ddd273a0ad1aa9953f0 @NZKoz NZKoz committed Oct 16, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/integration.rb
@@ -288,7 +288,7 @@ def parse_result
end
(@headers['set-cookie'] || [] ).each do |string|
- name, value = string.match(/^(.*?)=(.*?);/)[1,2]
+ name, value = string.match(/^([^=]*)=([^;]*);/)[1,2]
@cookies[name] = value
end

0 comments on commit 534600e

Please sign in to comment.