Hi everybody,
I am having an issue with mod_rewrite. I have following two entries in
.htaccess
RewriteCond %{HTTP_COOKIE} Email=([^;]+) [NC]
RewriteRule ^(.*)$ /search?iEmail=%1 [L,R,QSA]
The issue is that I set the cookie to [EMAIL PROTECTED] The cookie is
stored as "cookie%40atest.com" and is not being decoded by the rule. Now
when the rule executes the URL becomes
"/search?iEmail=cookie%40atest.com" and is encoded once more before
sending it back. So the URL becomes
"/search?iEmail=cookie%2540atest.com"
Does this seem like a bug? I think when the expression is matching the
cookie, it should decode it before changing the URL. Any ideas?
Thanks
Ravi
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]