Skip to content

Commit

Permalink
Fix crash when there's a \' in the arguments.
Browse files Browse the repository at this point in the history
	Fixes crash when calling Process.Start on a file with a ' in the path
	when UseShellExecute is set to false.

	Patch by Tom Philpot.
  • Loading branch information
gonzalop committed Jun 15, 2011
1 parent 395aae6 commit 949e910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eglib/src/gshell.c
Expand Up @@ -225,7 +225,7 @@ g_shell_unquote (const gchar *quoted_string, GError **error)
}
} else if (*p == '\\'){
char c = *(++p);
if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == 0))
if (!(c == '$' || c == '"' || c == '\\' || c == '`' || c == '\'' || c == 0 ))
g_string_append_c (result, '\\');
if (c == 0)
break;
Expand Down

0 comments on commit 949e910

Please sign in to comment.