Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7946

Show
Ignore:
Timestamp:
10/16/07 20:19:27 (1 year ago)
Author:
nzkoz
Message:

More Performant Cookie Regexp for Integration tests. [Ola Bini]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/integration.rb

    r7851 r7946  
    289289 
    290290          (@headers['set-cookie'] || [] ).each do |string| 
    291             name, value = string.match(/^(.*?)=(.*?);/)[1,2] 
     291            name, value = string.match(/^([^=]*)=([^;]*);/)[1,2] 
    292292            @cookies[name] = value 
    293293          end