Home > Contributions > Apache

Contribution Erreur de parsing dans la configuration de mod_rewrite

Cette contribution a été réalisé en binôme avec M. Jonathan Clarke.

 

If you write a RewriteRule that set a cookie which contains a ':', the
mod_rewrite is interpreting the ':' as a separator character, but you have no
away to escape that character, and it is a valid character for a cookie value.

Eg if you set this RewriteRule :

RewriteRule ^/toto;jsessionid=(\w+):(\w+) -
[cookie=JSESSIONID:$1:$2:%{HTTP_HOST}]

You have no way to set the cookie name at "JSESSIONID" and it's value at
"$1:$2"

Link :
This contribution has been submitted on 2009-06-09 by Rémy-Christophe Schermesser .