2b30b55d6a5b71648296873b570b9d68b4901b6a galt Wed Feb 15 02:21:56 2017 -0800 CSP code cleanup. Using jsInlineF where needed for compact and efficient code, not using fixed-size local javascript strings which could overflow. diff --git src/hg/hgTracks/extTools.c src/hg/hgTracks/extTools.c index 50c49d2..855bdbd 100644 --- src/hg/hgTracks/extTools.c +++ src/hg/hgTracks/extTools.c @@ -282,23 +282,20 @@ else printf("\n", slp->name, val); } } // a hidden submit button, see // http://stackoverflow.com/questions/477691/submitting-a-form-by-pressing-enter-without-a-submit-button if (debug) printf("\n"); else if (!submitDone) printf("\n"); printf("\n"); // a little javascript that clicks the submit button if (!debug) { - struct dyString *dy = dyStringNew(256); - dyStringPrintf(dy, "document.getElementById(\"redirForm\").submit();"); - jsInline(dy->string); - dyStringFree(&dy); + jsInline("document.getElementById(\"redirForm\").submit();"); } jsInlineFinish(); printf("\n"); }