commit cd3965683fc63d0c1eb338193ace412ff468a7be from: Omar Polo date: Fri Nov 11 19:07:22 2022 UTC links: use URL if label is made only of blanks thanks cage for unknowingly making me realize this edge case. commit - 1d31253b05b32f7f88dcb8b93ea83ab69a5aca21 commit + cd3965683fc63d0c1eb338193ace412ff468a7be blob - 80ad3b893d4b2501a6a15b5e7096bbe4477dc93d blob + e3feca822c7a10a1181a0ab481e597a6aa822de1 --- proxy.c +++ proxy.c @@ -294,8 +294,12 @@ gemtext_translate_line(struct client *clt, char *line) label = line + strcspn(line, " \t"); if (*label == '\0') label = line; - else + else { *label++ = '\0'; + label += strspn(label, " \t"); + if (*label == '\0') + label = line; + } if (proxy_resurl(clt, line, buf, sizeof(buf)) == 0) url = buf;