mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 14:49:29 +00:00
parent
8453e3ba7d
commit
e03888d587
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ validate_string(const char *s) {
|
||||||
// special shell characters.
|
// special shell characters.
|
||||||
// Since they are not properly escaped on Windows anyway (see
|
// Since they are not properly escaped on Windows anyway (see
|
||||||
// sys/win/process.c), just forbid special shell characters.
|
// sys/win/process.c), just forbid special shell characters.
|
||||||
if (strpbrk(s, " ;'\"*$?&`#\\|<>[]{}()!~")) {
|
if (strpbrk(s, " ;'\"*$?&`#\\|<>[]{}()!~\r\n")) {
|
||||||
LOGE("Invalid server param: [%s]", s);
|
LOGE("Invalid server param: [%s]", s);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue