Skip to content

[Bug] Filter special Unicode characters #8123

@d7oc

Description

@d7oc

Some characters in Unicode can be used for bad things. One example is the right to left override character (https://unicode-explorer.com/c/202E) which changes the orientation of text. Such characters should be blocked on input.

Steps to reproduce

  1. Create a folder name with the RLO character

Expected behaviour

Should be blocked

Actual behaviour

Folder is created which leads to strange effects. Folder is displayed "correct" in the web:
Screenshot 2022-12-15 at 18 47 07

but the Mac Desktop App notification renders strange text (note the RLO character was entered after "Reverse"):

Screenshot 2022-12-15 at 18 47 59

even though the folder in the file system seems to work.

This is only one example. There might be other "bad" character which might possibly harm system and thus should be prohibited.

Environment general

All tested on https://web.cloud.owncloud.com

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions