Skip to content

Conversation

gmegidish
Copy link
Member

No description provided.

if (this.isAscii(text)) {
// adb shell input only supports ascii characters. and
// some of the keys have to be escaped.
const _text = text.replace(/ /g, "\\ ");

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This does not escape backslash characters in the input.
Copy link
Member

@krismuhi krismuhi left a comment

Choose a reason for hiding this comment

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

approving this PR with a broken heart for the missing tests

@gmegidish gmegidish merged commit cfda91e into main Jun 23, 2025
3 of 4 checks passed
@gmegidish gmegidish deleted the fix-support-non-ascii-keys-with-devicekit branch June 23, 2025 10:15
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.

2 participants