Lint
This commit is contained in:
parent
5d482502b2
commit
5894b47d5f
1 changed files with 3 additions and 4 deletions
|
@ -3348,10 +3348,9 @@ def load_settings(settingsfile):
|
|||
return False
|
||||
|
||||
def is_safe_path(basedir, path, follow_symlinks=True):
|
||||
if follow_symlinks:
|
||||
return os.path.realpath(path).startswith(basedir)
|
||||
|
||||
return os.path.abspath(path).startswith(basedir)
|
||||
if follow_symlinks:
|
||||
return os.path.realpath(path).startswith(basedir)
|
||||
return os.path.abspath(path).startswith(basedir)
|
||||
|
||||
def get_dircontent(path, repo=None):
|
||||
dircontent = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue