3d79b89141253b72477ac9276f8acfc125efc7c6 max Thu Apr 20 02:54:47 2023 -0700 #Preview2 week - bugs introduced now will need a build patch to fix small tweaks to dumpToLog feature, refs #30591 diff --git src/hg/lib/cart.c src/hg/lib/cart.c index 2c19627..0e8fb83 100644 --- src/hg/lib/cart.c +++ src/hg/lib/cart.c @@ -2415,31 +2415,31 @@ if (noSqlInj_dumpStack) setenv("noSqlInj_dumpStack", noSqlInj_dumpStack, TRUE); // if ignoreCookie is on the URL, don't check for cookies char *hguid = NULL; if ( cgiOptionalString("ignoreCookie") == NULL ) hguid = getCookieId(cookieName); // if _dumpToLog is on the URL, we can exit early with whatever // message we are trying to write to the stderr/error_log char *logMsg = NULL; if ( (logMsg = cgiOptionalString("_dumpToLog")) != NULL) { cartJsonStart(); - fprintf(stderr, "%s", cgiEncode(logMsg)); + fprintf(stderr, "%s", logMsg); cartJsonEnd(NULL); exit(0); } char *hgsid = getSessionId(); struct cart *cart = cartNew(hguid, hgsid, exclude, oldVars); cartExclude(cart, sessionVar); // activate optional debuging output for CGIs verboseCgi(cartCgiUsualString(cart, "verbose", NULL)); return cart; } static void addHttpHeaders() /* CGIs can initialize the global variable httpHeaders to control their own HTTP