Sanitize ascii control characters on windows

This commit is contained in:
I-Al-Istannen 2023-08-29 12:25:16 +02:00
parent 87b67e9271
commit ad53185247
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ ambiguous situations.
- Crawling of button cards without descriptions
- Abort crawling when encountering an unexpected ilias root page redirect
- Remove size suffix for files in content pages
- Sanitize ascii control characters on Windows
### Added
- `no-delete-prompt-override` conflict resolution strategy

View File

@ -14,7 +14,7 @@ def name_variants(path: PurePath) -> Iterator[PurePath]:
class Deduplicator:
FORBIDDEN_CHARS = '<>:"/\\|?*'
FORBIDDEN_CHARS = '<>:"/\\|?*' + "".join([chr(i) for i in range(0, 32)])
FORBIDDEN_NAMES = {
"CON", "PRN", "AUX", "NUL",
"COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9",