60a035027753d359fdf142c4141e3dff674497d2 galt Wed Jun 12 14:53:26 2013 -0700 fixed multiple NOSQLINJ tag error by using sqlSafefFrag instead of sqlSafef diff --git src/hg/hgc/regMotif.c src/hg/hgc/regMotif.c index 90ec524..77cb4b3 100644 --- src/hg/hgc/regMotif.c +++ src/hg/hgc/regMotif.c @@ -83,31 +83,31 @@ static void dnaMotifPrintProbTable(struct dnaMotif *motif, FILE *f) /* Print DNA motif probabilities. */ { printProbRow(f, "A", motif->aProb, motif->columnCount); printProbRow(f, "C", motif->cProb, motif->columnCount); printProbRow(f, "G", motif->gProb, motif->columnCount); printProbRow(f, "T", motif->tProb, motif->columnCount); } struct dnaMotif *loadDnaMotif(char *motifName, char *motifTable) /* Load dnaMotif from table. */ { struct sqlConnection *conn = hAllocConn(database); char query[256]; struct dnaMotif *motif; -sqlSafef(query, sizeof query, "name = '%s'", motifName); +sqlSafefFrag(query, sizeof query, "name = '%s'", motifName); motif = dnaMotifLoadWhere(conn, motifTable, query); hFreeConn(&conn); return motif; } void motifMultipleHitsSection(struct dnaSeq **seqs, int count, struct dnaMotif *motif) /* Print out section about motif, possibly with mutliple occurrences. */ { webNewSection("Motif:"); printf("
\n");
 printf("\n");
 if (motif != NULL)
     {