a2e949c53e2fecb9c8bf9524ab8b58ce0dd4666f galt Wed Sep 20 18:03:55 2023 -0700 hgc - Making links work better to support http or https. refs #32257 diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 08a90a6..9cbffb2 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -6079,30 +6079,32 @@ * Also strip web URLs since Entrez doesn't like those. */ { char buf[MAXURLSIZE]; char *ptr; if (len >= sizeof(buf)) warn("author %s too long to process", gbAuthor); else { memcpy(buf, gbAuthor, len); buf[len] = 0; stripChar(buf, '.'); subChar(buf, ',' , ' '); if ((ptr = strstr(buf, " http://")) != NULL) *ptr = 0; + if ((ptr = strstr(buf, " https://")) != NULL) + *ptr = 0; dyStringAppend(dy, buf); dyStringAppend(dy, " "); } } void gbToEntrezAuthor(char *authors, struct dyString *dy) /* Convert from Genbank author format: * Kent,W.J., Haussler,D. and Zahler,A.M. * to Entrez search format: * Kent WJ,Haussler D,Zahler AM */ { char *s = authors, *e; /* Parse first authors, which will be terminated by '.,' */