[gq-commit] gq/src configfile.c,1.33,1.34
Status: Beta
Brought to you by:
sur5r
From: <bi...@us...> - 2003-10-05 00:36:43
|
Update of /cvsroot/gqclient/gq/src In directory sc8-pr-cvs1:/tmp/cvs-serv2751 Modified Files: configfile.c Log Message: properly escape & ' and " in the config file as well Index: configfile.c =================================================================== RCS file: /cvsroot/gqclient/gq/src/configfile.c,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** configfile.c 4 Oct 2003 23:36:27 -0000 1.33 --- configfile.c 5 Oct 2003 00:36:39 -0000 1.34 *************** *** 841,844 **** --- 841,853 ---- g_string_append(outstr, ">"); break; + case '&': + g_string_append(outstr, "&"); + break; + case '\'': + g_string_append(outstr, "'"); + break; + case '"': + g_string_append(outstr, """); + break; default: g_string_append_c(outstr, c); |