Removed '~' from generated filename character pool to avoid issues with quick-unlock

Former-commit-id: bcb77c5030c48693bcd0a479f7576e6ddc4d6729 [formerly 109141a266]
Former-commit-id: b7bd4134b3bee5760aaa56064a1ad9b29957fa1c
This commit is contained in:
2022-11-06 13:25:35 -05:00
parent 9d1f0a065b
commit 3a6655e977
+1 -1
View File
@@ -104,7 +104,7 @@ def string_gen(_complexity, _length): # generates and returns a random string b
_character_pool = string.ascii_letters + string.digits
elif _complexity == 'f':
_character_pool = string.digits + string.ascii_letters + string.punctuation.replace('/', '').replace('\\', '')\
.replace("'", '').replace('"', '').replace('`', '')
.replace("'", '').replace('"', '').replace('`', '').replace('~', '')
else:
_character_pool = string.digits + string.ascii_letters + string.punctuation
_min_special, _special = round(.2 * _length), 0