c4e00067ef764ef4c49a49d3d7b78606cc786f04 galt Mon Jul 1 12:50:41 2013 -0700 fixes #11192 -- handling https in redirects between ucsc and other official mirror sites like genome-euro diff --git src/hg/lib/web.c src/hg/lib/web.c index 5631958..f56a53f 100644 --- src/hg/lib/web.c +++ src/hg/lib/web.c @@ -227,44 +227,32 @@ puts(menuStr); } if (endsWith(scriptName, "hgGateway") && geoMirrorEnabled()) { // Show an opt-out alert if user is on a host to which user has been automatically redirected (just once, right after they have been redirected) char *source = cgiOptionalString("source"); char *redirect = cgiOptionalString("redirect"); if (source != NULL && redirect != NULL && sameString(redirect, "auto")) { char *domain = cgiServerName(); char *port = cgiServerPort(); // We don't bother maintaining stuff in request URI, because it may contain items like hgsid and other host specific values int newUriSize = 2048; char *newUri = needMem(newUriSize); - // TODO what about https? - safef(newUri, newUriSize, "http://%s:%s/cgi-bin/hgGateway?redirect=manual&source=%s", source, port, domain); - - //empty TD disappears - /* - printf("