mirror of
https://github.com/Genymobile/scrcpy
synced 2025-09-01 23:05:19 +00:00
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user