cb8c0b5aec5b78aa6693d1df261752fd3f1a6ca5 galt Fri Sep 15 12:21:42 2023 -0700 Fixing hgTables for redirect-to-https. Galaxy will now work correctly since we give it our URL in a vaiable of that name, now updated in galaxy.c and mainPage.c. Fixed a few minor URLs to documentation too. diff --git src/hg/hgTables/great.c src/hg/hgTables/great.c index e62c5ca..3c8e1fc 100644 --- src/hg/hgTables/great.c +++ src/hg/hgTables/great.c @@ -156,31 +156,31 @@ hPrintf("<FORM ACTION=\"%s\" METHOD=GET>\n", cgiScriptName()); cgiMakeButton(hgtaDoMainPage, "Cancel"); hPrintf("</FORM>\n"); } boolean doGreat() /* has the send to GREAT checkbox been selected? */ { return cartUsualBoolean(cart, "sendToGreat", FALSE); } void doSubmitToGreat(const char *path) /* Send a URL to GREAT that it can use to retrieve the results. */ { struct dyString *requestName = getRequestName(); -struct dyString *requestURL = dyStringCreate("http://%s/%s", cgiServerNamePort(), path); +struct dyString *requestURL = dyStringCreate("https://%s/%s", cgiServerNamePort(), path); struct dyString *greatRequest; // archive server for hg18 if (sameWord("hg18", database)) greatRequest = dyStringCreate( "<meta http-equiv='refresh' content='0;url=http://bejerano.stanford.edu/great/public-2.0.2/cgi-bin/greatStart.php?requestURL=%s&requestSpecies=%s&requestName=%s&requestSender=UCSC%%20Table%%20Browser'>", dyStringContents(requestURL), database, dyStringContents(requestName)); else greatRequest = dyStringCreate( "<meta http-equiv='refresh' content='0;url=http://great.stanford.edu/public/cgi-bin/greatStart.php?requestURL=%s&requestSpecies=%s&requestName=%s&requestSender=UCSC%%20Table%%20Browser'>", dyStringContents(requestURL), database, dyStringContents(requestName)); hPrintf("<b>GREAT</b> is processing BED data from \"%s\"...please wait.\n", dyStringContents(requestName)); hWrites(dyStringContents(greatRequest)); dyStringFree(&greatRequest);