src/hg/instinct/hgHeatmap2/hgSessions.c 1.8

1.8 2009/09/03 00:04:32 jsanborn
fixed bug with non-escaped chars
Index: src/hg/instinct/hgHeatmap2/hgSessions.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/hgHeatmap2/hgSessions.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -b -B -U 4 -r1.7 -r1.8
--- src/hg/instinct/hgHeatmap2/hgSessions.c	4 Jun 2009 03:50:37 -0000	1.7
+++ src/hg/instinct/hgHeatmap2/hgSessions.c	3 Sep 2009 00:04:32 -0000	1.8
@@ -148,9 +148,11 @@
 {
 if (!cart || !vars)
     return -1;
 
-char *settings = replaceChars(vars, "\"", "'");  // replace " with single quote
+//char *settings = replaceChars(vars, "\"", "'");  // replace " with single quote
+
+char *settings = sqlEscapeString(vars);
 
 struct sqlConnection *conn = hAllocConnProfile(heatMapDbProfile, SESSION_DB);
 if (!conn)
     errAbort("Couldn't connect to session database");