15dec6458047446acf4f6c982042cbee2a6bb6d5 max Thu Jul 6 04:47:10 2023 -0700 fixing spurious warning message in apache logs, refs #31707 diff --git src/hg/cartReset/cartReset.c src/hg/cartReset/cartReset.c index f8bcbbf..816a969 100644 --- src/hg/cartReset/cartReset.c +++ src/hg/cartReset/cartReset.c @@ -23,31 +23,30 @@ * QA must be able to reset these, too, so do this here now */ { jsInline("localStorage.clear();"); } void doMiddle() /* cartReset - Reset cart. */ { if (problem) { warn("To stop Open Redirect abuse, only relative URLs are supported. " "Request for destination=[%s] rejected.\n", destination); } cartResetInDb(hUserCookie()); resetLocalStorage(); -jsInlineFinish(); } int main(int argc, char *argv[]) /* Process command line. */ { long enteredMainTime = clock1000(); struct dyString *headText = dyStringNew(512); destination = cgiUsualString("destination", defaultDestination); // Only allow relative URL that does not contain space or quote characters. if (strstr(destination, "//") // absolute URL || strchr(destination, '\'') // single quote || strchr(destination, '"') // double quote || strchr(destination, ' ') // space || sameString(destination, "") // empty string )