[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-bugs
Subject:    [Varnish] #755: Incorrect escaping of purges
From:       varnish-bugs () varnish-cache ! org (Varnish)
Date:       2010-08-18 15:52:16
Message-ID: 045.170f5c50b281940c10f9c218b24bde03 () varnish-cache ! org
[Download RAW message or body]

#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

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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic