mirror of https://github.com/BOINC/boinc.git
Fix bug #783
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@560 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
parent
726b613270
commit
6cf1a252c1
|
@ -727,6 +727,14 @@ static char *generate_wu_template(DC_Workunit *wu)
|
|||
g_string_append(cmd, quoted);
|
||||
g_free(quoted);
|
||||
}
|
||||
/* Now do the escaping for MySQL */
|
||||
for (i = 0; cmd->str[i]; i++)
|
||||
{
|
||||
if (cmd->str[i] != '\'' && cmd->str[i] != '\\')
|
||||
continue;
|
||||
g_string_insert_c(cmd, i, '\\');
|
||||
i++;
|
||||
}
|
||||
g_string_append_printf(tmpl,
|
||||
"\t<command_line>%s</command_line>\n", cmd->str);
|
||||
g_string_free(cmd, TRUE);
|
||||
|
|
Loading…
Reference in New Issue