8ae0ae3613df46ae3fffc6618e7e276ac679633c max Thu Jun 15 13:45:35 2017 -0700 some more cleanup of old code that I wrote, refs #19632 diff --git src/hg/hgLogin/hgLogin.c src/hg/hgLogin/hgLogin.c index 63b30fd..508efef 100644 --- src/hg/hgLogin/hgLogin.c +++ src/hg/hgLogin/hgLogin.c @@ -1287,28 +1287,24 @@ " hgLogin \n" ); } int main(int argc, char *argv[]) /* Process command line. */ { long enteredMainTime = clock1000(); pushCarefulMemHandler(100000000); cgiSpoof(&argc, argv); htmlSetStyleSheet("../style/userAccounts.css"); htmlSetStyle(htmlStyleUndecoratedLink); htmlSetBgColor(HG_CL_OUTSIDE); htmlSetFormClass("accountScreen"); -boolean relativeLink = cfgOptionBooleanDefault("login.relativeLink", FALSE); struct dyString *dy; -if (relativeLink) // normal relative links are better for reverse proxyies or all-https sites - dy = dyStringCreate("%s", cgiScriptName()); -else - dy = dyStringCreate("http%s://%s%shgLogin", - loginUseHttps() ? "s" : "", wikiLinkHost(), cgiScriptDirUrl()); +dy = dyStringCreate("%shgLogin", hLoginHostCgiBinUrl()); hgLoginUrl = dyStringCannibalize(&dy); + oldCart = hashNew(10); cartHtmlShell("Login - UCSC Genome Browser", doMiddle, hUserCookie(), excludeVars, oldCart); cgiExitTime("hgLogin", enteredMainTime); return 0; }