[Varnish] #755: Incorrect escaping of purges
Varnish
varnish-bugs at varnish-cache.org
Mon Mar 7 13:07:05 CET 2011
#755: Incorrect escaping of purges
----------------------+-----------------------------------------------------
Reporter: kristian | Owner: kristian
Type: defect | Status: new
Priority: normal | Milestone: Varnish 3.0 dev
Component: varnishd | Version: trunk
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
Changes (by kristian):
* owner: phk => kristian
* milestone: => Varnish 3.0 dev
Old description:
> There's double-escaping going on (I'll track it down when this course is
> over) when it comes to purges. Example:
>
> {{{
> purge req.url ~ "\.css"
> 100 85
> Unknown request.
> Type 'help' for more info.
> Syntax Error: Invalid backslash sequence
>
> purge req.url ~ "\\.css"
> 200 0
>
> purge.list
> 200 152
> 0x7fa2bd20d9a0 1282146548.428008 0 req.url ~ \.css
> 0x7fa2bd20db20 1282145619.939903 1 req.url ~ /two
> 0x7fa2bd20d580 1282145596.146903 2G
> }}}
>
> PCRE can take care of \.foo, but Varnish can't. (I already did track this
> down, but forgot to report/fix/write it down, so I'm being pre-emptive).
New description:
There's double-escaping going on (I'll track it down when this course is
over) when it comes to purges. Example:
{{{
purge req.url ~ "\.css"
100 85
Unknown request.
Type 'help' for more info.
Syntax Error: Invalid backslash sequence
purge req.url ~ "\\.css"
200 0
purge.list
200 152
0x7fa2bd20d9a0 1282146548.428008 0 req.url ~ \.css
0x7fa2bd20db20 1282145619.939903 1 req.url ~ /two
0x7fa2bd20d580 1282145596.146903 2G
}}}
PCRE can take care of \.foo, but Varnish can't. (I already did track this
down, but forgot to report/fix/write it down, so I'm being pre-emptive).
--
Comment:
Dear Diary,
I forgot to update an other bug-report I wrote ages ago. I'm going to
verify this, though I do believe it's fixed. (Stealing it).
- Kristian
--
Ticket URL: <http://varnish-cache.org/trac/ticket/755#comment:1>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list