Skip to content

Commit

Permalink
updated filename_invalid function
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpyle committed Feb 29, 2024
1 parent 08c984b commit 97f77dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docassemble_base/docassemble/base/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __str__(self):


This comment has been minimized.

Copy link
@Kll-8989

Kll-8989 Mar 1, 2024

Verdadero

def filename_invalid(filename):
if '../' in filename:
if '../' in filename or filename.startswith('/'):
return True
if re.search(r'[^A-Za-z0-9\_\.\-\/ ]', filename):
return True
Expand Down

0 comments on commit 97f77dc

Please sign in to comment.