Commits

Jan Brohl committed dcd1f48

regex in talvirtualpath gefixt

Comments (0)

Files changed (1)

src/simplerest/util.py

 
 
 class TALVirtualPath(VirtualPath):
-    _forbidden = re.compile("[.]|(.*[/|?\\].*)+")
+    _forbidden = re.compile("[.]|(.*([/]|[|]|[?]|[\\\\]).*)+")
 
     def __init__(self, path=[], basepath=[], **kwargs):
         VirtualPath.__init__(self, path=path, basepath=basepath, **kwargs)