On Thu, Jun 30, 2016 at 4:46 PM, Rainer Canavan
<[email protected]> wrote:
> On Wed, Jun 29, 2016 at 10:27 AM, Yann Ylavic <[email protected]> wrote:
>>
>> RequestHeader edit* Cookie
>> ([^=;,]++)(="(?:[^\\\\"]\\\\.)*+[^"]*+"|[^;,]*)?+[;,] $1$2; early
>
> I have to admit that I'd never have thought of using mod_headers. Both
> solutions work as expected, but Yann's solution looks somewhat more
> robust to me, so I think I'll go with that.

I think I forgot a .*+ above to really eat the quoted escapes, so I'd
rather propose:
RequestHeader edit* Cookie
([^=;,]++)(="(?:[^\\\\"]*+\\\\.)*+[^"]*+"|[^;,]*)?+[;,] $1$2; early

Regards,
Yann.

Reply via email to