mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-04-04 12:48:53 +00:00
Merge pull request #199 from arne1101/master
Limit filename length to 100 characters
This commit is contained in:
@@ -395,6 +395,8 @@ def get_filename_safe_string(string):
|
||||
string = string.replace(char, "")
|
||||
string = string.rstrip(".")
|
||||
|
||||
string = (string[:100]) if len(string) > 100 else string
|
||||
|
||||
return string
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user