Skip to content

Commit a7aebad

Browse files
committed
fix: android io text command of a text with spaces would only send the first word
1 parent a8452ea commit a7aebad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devices/android.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ func isAscii(text string) bool {
629629
func escapeShellText(text string) string {
630630
// escape all shell special characters that could be used for injection
631631
specialChars := `\'"`+ "`" + `
632-
|&;()<>{}[]$*?`
632+
|&;()<>{}[]$*? `
633633
result := ""
634634
for _, char := range text {
635635
if strings.ContainsRune(specialChars, char) {

0 commit comments

Comments
 (0)