Skip to content

chore: forbid non-ASCII characters in the HP_SHARED_KEY#82

Merged
oleksandr-nc merged 1 commit into
mainfrom
fix/sharedkey-non-asc2
Jan 7, 2026
Merged

chore: forbid non-ASCII characters in the HP_SHARED_KEY#82
oleksandr-nc merged 1 commit into
mainfrom
fix/sharedkey-non-asc2

Conversation

@oleksandr-nc

Copy link
Copy Markdown
Contributor

Fixes #52

The check uses tr -d '\040-\176' to remove all printable ASCII characters (octal 040-176 = decimal 32-126 = space to tilde). If anything remains, the key contains non-ASCII or control characters.

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>

@kyteinsky kyteinsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@oleksandr-nc oleksandr-nc merged commit 54e4d58 into main Jan 7, 2026
3 checks passed
@oleksandr-nc oleksandr-nc deleted the fix/sharedkey-non-asc2 branch January 7, 2026 07:00
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.

HaRP is unable to handle API-Keys with non-ASCII characters

2 participants