Skip to content

Fix Windows export paths for invalid contact names - #2

Open
1uxury wants to merge 1 commit into
amtech:masterfrom
1uxury:fix/windows-invalid-contact-filename
Open

Fix Windows export paths for invalid contact names#2
1uxury wants to merge 1 commit into
amtech:masterfrom
1uxury:fix/windows-invalid-contact-filename

Conversation

@1uxury

@1uxury 1uxury commented Aug 20, 2026

Copy link
Copy Markdown

This fixes export failures on Windows when a contact remark contains characters that are invalid in file or directory names, such as ?, *, :, <, >, |, or trailing spaces/dots.

The fix sanitizes contact remarks only when they are used in export paths, while keeping the original remark unchanged in chat content and UI display.

It also handles Windows reserved device names such as CON, NUL, COM1, and LPT1.

Tested with a contact remark containing an invalid Windows filename character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant