b535013b6598af52d63ad9865b8377b83d84fa2d max Mon Jun 19 10:25:52 2017 -0700 fixing a few more things in hgLogin/hgSession: empty returnto url uses the new function, fixing typo in hLoginHostCgiBinUrl removing hgLogin from URL, removing the slash in loginUrl() as hLoginHostCgiBinUrl adds a slash already, refs #19632 diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index 39332b3..a571f23 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -3337,31 +3337,31 @@ char *hLoginHostCgiBinUrl() /* Return the current full absolute URL of the cgi-bin directory of the host * used for logins. Genome-euro/genome-asia use genome.ucsc.edu for the login, * as we have only one single server for user accounts. * Returns a string in the format * http(s):///cgi-bin/ e.g. http://genome.ucsc.edu/cgi-bin/ * - the is coming from the wiki.host variable in hg.conf. * - https is used unless login.useHttps=off in hg.conf * * If login.relativeLink=on is set, return only the empty string. * (see hLocalCgiBinUrl) * Result has to be free'd. */ { char buf[2048]; -safef(buf, sizeof(buf), "http%s://%s/cgi-bin/hgLogin", +safef(buf, sizeof(buf), "http%s://%s/cgi-bin/", loginUseHttps() ? "s" : "", wikiLinkHost()); return cloneString(buf); } boolean hHostHasPrefix(char *prefix) /* Return TRUE if this is running on web-server with host name prefix */ { if (prefix == NULL) return FALSE; char *httpHost = hHttpHost(); if (httpHost == NULL) return FALSE; return startsWith(prefix, httpHost);