mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Properly escape quotes in process_escape_args() library function
This commit is contained in:
@@ -103,7 +103,7 @@ process_escape_args(char **argv)
|
||||
if (argp != argv) {
|
||||
ds_put_char(&ds, ' ');
|
||||
}
|
||||
if (arg[strcspn(arg, " \t\r\n\v\\")]) {
|
||||
if (arg[strcspn(arg, " \t\r\n\v\\\'\"")]) {
|
||||
ds_put_char(&ds, '"');
|
||||
for (p = arg; *p; p++) {
|
||||
if (*p == '\\' || *p == '\"') {
|
||||
|
Reference in New Issue
Block a user