Edgewall Software

Changes between Initial Version and Version 1 of Ticket #2438, comment 1


Ignore:
Timestamp:
Jan 13, 2011, 9:58:11 PM (11 years ago)
Author:
Remy Blank

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2438, comment 1

    initial v1  
    11A quick fix for this (for modpython at least) is doing something like this before loading the cookies:
    2 
    3             # Remove second instance of trac_auth
    4             cookies = re.sub(r'(.*trac_auth.*); trac_auth=\w+', r'\1',
    5                 self.req.headers_in['Cookie'])
    6             self.incookie.load(cookies)
    7 
     2{{{#!py
     3# Remove second instance of trac_auth
     4cookies = re.sub(r'(.*trac_auth.*); trac_auth=\w+', r'\1',
     5    self.req.headers_in['Cookie'])
     6self.incookie.load(cookies)
     7}}}
    88This makes only the first trac_auth cookie to be used, which is the proper one based on the spec described here:
    99