]> Untitled Git - lemmy.git/commit
Improved validation of display names (Fixes #3436) (#3437)
authorJosephos <josephosss@gmail.com>
Tue, 4 Jul 2023 10:41:58 +0000 (12:41 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Jul 2023 10:41:58 +0000 (12:41 +0200)
commitcdc5b478860607193942d28ba825f9bf00e05e0b
treeb7ed9d6f3efcdd00ef1aa107903b7bf6756f7e8d
parent8bcf2ea7c9c55e8e073917e3050f85e4bf913605
Improved validation of display names (Fixes #3436) (#3437)

* Fixed validation of display names

Fixed validation of display names: reject names beginning with invisible unicode characters.

* Formatting

Formatting fix.

* Expanded list of forbidden Unicode characters. Validation now checks for disallowed characters anywhere in the name.

* Formatting

* Added a comment detailing source of the list of invisible chars.
crates/utils/src/utils/validation.rs