f20e513a5dcae8e821aaf7dcccfaf57ee4cd3cb1 galt Thu Feb 6 13:37:43 2025 -0800 Reapply "Fixing security concern in hgEncodeVocab. fixes #287. Note that actual full cleanup by removing the unneeded encode/cv.ra from trackDb files has not been done yet., and making the code tolerate its presence or absence in the trackDb.ra files, at the start of the controlledVocabulary setting." This reverts commit c5af95b7146dde46f2d2f70ecad1eb9b4c37b57f. diff --git src/hg/lib/cv.c src/hg/lib/cv.c index 70eed9412b2..15bcaef29bf 100644 --- src/hg/lib/cv.c +++ src/hg/lib/cv.c @@ -140,31 +140,31 @@ return ret; } /* TBD char *cvLabDeNormalize(char *minimalTerm) // returns lab name with parenthesized trailing info, by lookup in cv.ra, and restores // other oddities caught by Normalize } */ static char *cvFileRequested = NULL; void cvFileDeclare(const char *filePath) // Declare an altername cv.ra file to use -// (The cv.ra file is normally discovered based upon CGI/Tool and envirnment) +// (The cv.ra file is normally discovered based upon CGI/Tool and environment) { cvFileRequested = cloneString(filePath); } const char *cvFile() // return default location of cv.ra { static char filePath[PATH_LEN]; if (cvFileRequested != NULL) { safecpy(filePath, sizeof(filePath), cvFileRequested); } else { char *root = hCgiRoot();