980804e6eacb85cb2f60ac064468eb307fe448d0 hiram Wed Jan 14 16:57:26 2026 -0800 starting a liftRequest endpoint refs #31811 diff --git src/hg/hubApi/liftOver.c src/hg/hubApi/liftOver.c index ead207c3f70..9d211818193 100644 --- src/hg/hubApi/liftOver.c +++ src/hg/hubApi/liftOver.c @@ -284,33 +284,32 @@ /* probably want a silent exit here */ if (isEmpty(fromGenome) || isEmpty(toGenome) || isEmpty(email) || isEmpty(comment)) apiErrAbort(err400, err400Msg, "must have all arguments: %s, %s, %s, %s for endpoint '/liftRequest", argFromGenome, argToGenome, argEmail, argComment); char *cookieName = hUserCookie(); char *userId = findCookieData(cookieName); char *referer = getenv("HTTP_REFERER"); char dir[PATH_LEN]; char name[FILENAME_LEN]; char ext[FILEEXT_LEN]; /* expecting request to come from something.ucsc.edu/liftRequest.html */ if (isNotEmpty(referer) && isNotEmpty(userId)) { splitPath(referer, dir, name, ext); - if (! (endsWith(dir, ".ucsc.edu/") && sameWord(name, "liftRequest") && sameWord(ext, ".html"))) { + if (! (endsWith(dir, ".ucsc.edu/") && sameWord(name, "liftRequest") && sameWord(ext, ".html"))) apiErrAbort(err400, err400Msg, "can not find required inputs for endpoint '/liftRequest"); - } } else { if (! debug) apiErrAbort(err400, err400Msg, "can not find required inputs for endpoint '/liftRequest"); } struct dyString *msg = newDyString(0); dyStringPrintf(msg, "Lift over request\nfrom: %s\nto: %s\nemail '%s'\ncomment: '%s'", fromGenome, toGenome, email, comment); /* our mailViaPipa never has any relevant return code indicating * success or failure. So, ignore the return integer: */ // (void) mailViaPipe("TBD:GoogleEmailGroupAddress", "liftOver request", msg->string, "genome-www@ucsc.edu"); /* some kind of response here back to the request page */ struct jsonWrite *jw = apiStartOutput(); jsonWriteString(jw, "msg", dyStringCannibalize(&msg)); apiFinishOutput(0,NULL,jw);