Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.499 kb
from base import *
MAGIC = "Cherokee accepts dot dot inside the request"
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__) = "Dot dot reduction"
self.request = "GET /dotdot2/aa/bb/cc/../../dd/../../dir/file HTTP/1.0\r\n"
self.expected_error = 200
self.expected_content = MAGIC
def Prepare (self, www):
d = self.Mkdir (www, "dotdot2/dir")
self.WriteFile (d, "file", 0444, MAGIC);
Jump to Line
Something went wrong with that request. Please try again.