Commit ece0f943 by Timothée Peignier

Merge pull request #241 from brian-montgomery/issue-226

Make sure the prefix and first part of name are equivalent. close #226
parents 2619430a 0118978b
...@@ -101,6 +101,8 @@ class BaseFinderStorage(PipelineStorage): ...@@ -101,6 +101,8 @@ class BaseFinderStorage(PipelineStorage):
def match_location(self, name, path, prefix=None): def match_location(self, name, path, prefix=None):
if prefix: if prefix:
if prefix != name[:len(prefix)]:
return None
prefix = "%s%s" % (prefix, os.sep) prefix = "%s%s" % (prefix, os.sep)
name = name[len(prefix):] 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