e28cc42abe8dbb30decf688ad7be6d593fcc8b75 hiram Tue Apr 30 15:56:20 2019 -0700 adding extraneous argument checks for all functions to cause error refs #18869 diff --git src/hg/hubApi/dataApi.h src/hg/hubApi/dataApi.h index 9ab9644..7d734cb 100644 --- src/hg/hubApi/dataApi.h +++ src/hg/hubApi/dataApi.h @@ -65,30 +65,36 @@ * This option will limit to only the actual track entries with data */ extern boolean trackLeavesOnly; /* set by CGI parameter 'trackLeavesOnly' */ /* this selects output type 'arrays', where the default type is: objects */ extern boolean jsonOutputArrays; /* set by CGI parameter 'jsonOutputArrays' */ extern boolean measureTiming; /* set by CGI parameters */ /* functions in hubApi.c */ struct hubPublic *hubPublicDbLoadAll(); struct dbDb *ucscDbDb(); /* return the dbDb table as an slList */ +char *verifyLegalArgs(char *validArgList); +/* validArgList is a semicolon;separated;list;of;valid;arguments + * returning string of any other arguments not on that list found in + * cgiVarList(), NULL when none found. + */ + /* ######################################################################### */ /* functions in apiUtils.c */ void startProcessTiming(); /* for measureTiming, beginning processing */ void apiFinishOutput(int errorCode, char *errorString, struct jsonWrite *jw); /* finish json output, potential output an error code other than 200 */ void apiErrAbort(int errorCode, char *errString, char *format, ...); /* Issue an error message in json format, and exit(0) */ struct jsonWrite *apiStartOutput(); /* begin json output with standard header information for all requests */