[PR #724] fix: ensure user inputs are normalized #662

Closed
opened 2025-10-08 00:14:47 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/pocket-id/pocket-id/pull/724

State: closed
Merged: Yes


User inputs such as names can contain UTF-8 sequences, and they may not be in a normalized form, so they may not show up as identical when they should be.

This PR makes sure that all strings that are not identifiers (like UUIDs) are normalized before being stored in the database.

For more info on Unicode normalization, you can refer to this article I wrote a few years ago

**Original Pull Request:** https://github.com/pocket-id/pocket-id/pull/724 **State:** closed **Merged:** Yes --- User inputs such as names can contain UTF-8 sequences, and they may not be in a normalized form, so they may not show up as identical when they should be. This PR makes sure that all strings that are not identifiers (like UUIDs) are normalized before being stored in the database. > For more info on Unicode normalization, you can refer to [this article](https://withblue.ink/2019/03/11/why-you-need-to-normalize-unicode-strings.html) I wrote a few years ago
OVERLORD added the pull-request label 2025-10-08 00:14:48 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-1#662