mirror of
https://github.com/Genymobile/scrcpy
synced 2025-02-19 22:16:51 +00:00
parent
8453e3ba7d
commit
e03888d587
@ -225,7 +225,7 @@ validate_string(const char *s) {
|
||||
// special shell characters.
|
||||
// Since they are not properly escaped on Windows anyway (see
|
||||
// sys/win/process.c), just forbid special shell characters.
|
||||
if (strpbrk(s, " ;'\"*$?&`#\\|<>[]{}()!~")) {
|
||||
if (strpbrk(s, " ;'\"*$?&`#\\|<>[]{}()!~\r\n")) {
|
||||
LOGE("Invalid server param: [%s]", s);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user