CarnetApp / CarnetNextcloud

GNU Affero General Public License v3.0
154 stars 29 forks source link

Sanitize file names #201

Open CWempe opened 1 year ago

CWempe commented 1 year ago

Please report every bug related to the Android application here https://github.com/PhieF/CarnetAndroid/

Describe the bug When you create a note, the title is used as the filename to store the note in Nextcloud. When syncing the notes to a Windows Client this might result in an error, because the file system might not support all characters.

To Reproduce Steps to reproduce the behavior:

  1. Open Carnet in the NextCloud web interface
  2. Create a new note with the title `test?'
  3. What for the Windows NextCloud-Client to sync the new note file to the desktop system
  4. See error

Expected behavior I would expect Carnet to sanitize the file names first. While Emojies seem to work on NTFS, I guess these should also be stripped from the filename.

Screenshots

image

image

When using Emojies:

image

image

Desktop (please complete the following information):

Server:

CyberMinion commented 9 months ago

Same problem here.

Desktop (please complete the following information):

OS: Windows 10
Browser: Firefox
Version: 121.0
NextCloud-Client: 3.4.1 (Windows)

Server:

Nextcloud 28.0.1
Ubuntu, on a VM.