https://issues.apache.org/bugzilla/show_bug.cgi?id=44647

           Summary: mod_rewrite cookie value can not contain a colon
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


The cookie value when set by mod_rewrite can not have a colon in it (directly)
or via back reference as a colon is used for the parameter delimiter. Having a
colon in the value offsets the parameter positioning.

Simple Example where cookie is ACookie=cookie_value1:cookie_value2
RewriteRule ^/ - [CO=ACookie:cookie_value1:cookie_value2:domain.com]
(cookie_value2 ends up in the domain position)

Back Reference Example where cookie is ACookie=cookie_value1:cookie_value2
RewriteCond %{HTTP_COOKIE} ACookie=(.*)
RewriteRule ^/ - [CO=CookieCopy:%1:domain.com]
(cookie_value2 ends up in the domain position)

In our environment, the back reference was attempted (with Apache functioning
as a reverse proxy to a 3rd party application) and this issue stumbled upon.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to