[entropy.tools] fix is_valid_path_string regexp
This commit is contained in:
@@ -2563,7 +2563,7 @@ def is_valid_string(string):
|
||||
if invalid: return False
|
||||
return True
|
||||
|
||||
valid_path_regexp = re.compile("^([A-Za-z0-9/\.:-_]+)$")
|
||||
valid_path_regexp = re.compile("^([A-Za-z0-9/\.:\-_]+)$")
|
||||
def is_valid_path_string(path):
|
||||
"""
|
||||
Return whether given path is a valid path string (whitelisting valid
|
||||
|
||||
Reference in New Issue
Block a user