File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ class GitPuller(Configurable):
5555 default_value = False ,
5656 config = True ,
5757 help = """
58- List of URLs described as Python regular expressions (using re.match ()) where it
59- is permitted to autorun scripts from the pulled project as a pre-initialisation
58+ List of URLs described as Python regular expressions (using re.fullmatch ()) where
59+ it is permitted to autorun scripts from the pulled project as a pre-initialisation
6060 step. Enable this only if you understand and accept the risks of AUTORUN.INF.
6161
6262 When set to boolean True, all URLs are allowed, whilst False (default) autorun
@@ -178,7 +178,7 @@ def autorun(self, operation="method"):
178178
179179 if not self .autorun_allow :
180180 return
181- if not any (( re .match (pattern , self .git_url ) for pattern in self .autorun_allow )):
181+ if not any (( re .fullmatch (pattern , self .git_url ) for pattern in self .autorun_allow )):
182182 return
183183
184184 script = next (( s for s in self ._autorun_script if os .path .exists (os .path .join (self .repo_dir , s )) ), None )
You can’t perform that action at this time.
0 commit comments