FS-5449: apply correct quoting, got older version of patch accidentally

This commit is contained in:
Nathan Neulinger 2013-05-31 16:31:27 -05:00
parent 634a507546
commit fc39b77520
1 changed files with 5 additions and 6 deletions

View File

@ -2371,8 +2371,8 @@ SWITCH_DECLARE(char *) switch_util_quote_shell_arg_pool(const char *string, swit
switch (string[i]) {
#ifndef WIN32
case '\'':
/* We replace ' by sq dq sq dq sq, so need 4 additional bytes */
dest_len += 4;
/* We replace ' by sq backslace sq sq, so need 3 additional bytes */
dest_len += 3;
break;
#endif
}
@ -2402,11 +2402,10 @@ SWITCH_DECLARE(char *) switch_util_quote_shell_arg_pool(const char *string, swit
break;
#else
case '\'':
/* We replace ' by sq dq sq dq sq */
/* We replace ' by sq backslash sq sq */
dest[n++] = '\'';
dest[n++] = '"';
dest[n++] = '\\';
dest[n++] = '\'';
dest[n++] = '"';
dest[n++] = '\'';
break;
#endif