mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Sanitize ascii control characters on windows
This commit is contained in:
parent
87b67e9271
commit
ad53185247
@ -28,6 +28,7 @@ ambiguous situations.
|
|||||||
- Crawling of button cards without descriptions
|
- Crawling of button cards without descriptions
|
||||||
- Abort crawling when encountering an unexpected ilias root page redirect
|
- Abort crawling when encountering an unexpected ilias root page redirect
|
||||||
- Remove size suffix for files in content pages
|
- Remove size suffix for files in content pages
|
||||||
|
- Sanitize ascii control characters on Windows
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- `no-delete-prompt-override` conflict resolution strategy
|
- `no-delete-prompt-override` conflict resolution strategy
|
||||||
|
@ -14,7 +14,7 @@ def name_variants(path: PurePath) -> Iterator[PurePath]:
|
|||||||
|
|
||||||
|
|
||||||
class Deduplicator:
|
class Deduplicator:
|
||||||
FORBIDDEN_CHARS = '<>:"/\\|?*'
|
FORBIDDEN_CHARS = '<>:"/\\|?*' + "".join([chr(i) for i in range(0, 32)])
|
||||||
FORBIDDEN_NAMES = {
|
FORBIDDEN_NAMES = {
|
||||||
"CON", "PRN", "AUX", "NUL",
|
"CON", "PRN", "AUX", "NUL",
|
||||||
"COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9",
|
"COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9",
|
||||||
|
Loading…
Reference in New Issue
Block a user