Commit 0118978b by brianm

Issue 226: Make sure the prefix and first part of name are equivalent.

parent 2619430a
......@@ -101,6 +101,8 @@ class BaseFinderStorage(PipelineStorage):
def match_location(self, name, path, prefix=None):
if prefix:
if prefix != name[:len(prefix)]:
return None
prefix = "%s%s" % (prefix, os.sep)
name = name[len(prefix):]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment