[Varnish] #755: Incorrect escaping of purges

Varnish varnish-bugs at varnish-cache.org
Wed Aug 18 17:52:16 CEST 2010

#755: Incorrect escaping of purges
 Reporter:  kristian  |       Owner:  phk  
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  varnishd  |     Version:  trunk
 Severity:  normal    |    Keywords:       
 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

 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).

Ticket URL: <http://www.varnish-cache.org/ticket/755>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list