080a160c7b9595d516c9c70e83689a09b60839d0 galt Mon Jun 3 12:16:53 2013 -0700 fix SQL Injection diff --git src/hg/getRnaPred/getRnaPred.c src/hg/getRnaPred/getRnaPred.c index ab7413d..4db564b 100644 --- src/hg/getRnaPred/getRnaPred.c +++ src/hg/getRnaPred/getRnaPred.c @@ -81,31 +81,31 @@ char *cdsOut = NULL; char *pslOut = NULL; char *suffix = ""; int maxSize = -1; char *genomeSeqs = NULL; struct nibTwoCache *getNibTwoCacheFromDb(char *db) /* get the nib or two-bit cache from database */ { struct sqlConnection *conn = hAllocConn(db); char nibTwoPath[PATH_LEN]; struct nibTwoCache *nibTwoCache; /* grab the first chromsome file name, if it's a nib, convert to * directory name */ -sqlNeedQuickQuery(conn, "select fileName from chromInfo limit 1", +sqlNeedQuickQuery(conn, "NOSQLINJ select fileName from chromInfo limit 1", nibTwoPath, sizeof(nibTwoPath)); if (nibIsFile(nibTwoPath)) { char *p = strrchr(nibTwoPath, '/'); if (p != NULL) *p = '\0'; else strcpy(nibTwoPath, "."); } nibTwoCache = nibTwoCacheNew(nibTwoPath); hFreeConn(&conn); return nibTwoCache; } struct nibTwoCache *getNibTwoCache(char *db)