05e67c59a20a5d00b810a981aef3b00c5bef82e1 max Fri Sep 20 06:03:18 2024 -0700 more features to hubtools: search in both parent and subdirs, better docs diff --git src/hg/cartReset/cartReset.c src/hg/cartReset/cartReset.c index 816a969..e4dea87 100644 --- src/hg/cartReset/cartReset.c +++ src/hg/cartReset/cartReset.c @@ -22,30 +22,31 @@ * relevant to the particular web browser where the browser runs, e.g. notification settings, maybe one day font sizes and color schemes of the UI. * 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()); +if (!cgiVarExists("skipLs")) resetLocalStorage(); } 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