Restrict GridFS lookups to exact model names
This commit is contained in:
parent
63b41faad6
commit
17d83126c7
1 changed files with 25 additions and 2 deletions
|
|
@ -65,7 +65,9 @@ class LargeFileMongo(LargeFileBase):
|
|||
for f in self._client.find(
|
||||
{
|
||||
"filename": re.compile(
|
||||
re.escape(self._name + MONGO_NAME_VERSION_SEPARATOR) + ".*"
|
||||
"^"
|
||||
+ re.escape(self._name + MONGO_NAME_VERSION_SEPARATOR)
|
||||
+ r"[0-9]+$"
|
||||
)
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue