commit 5d8286806344cf1e286772e0ff4d44ac9d6cfdb4721879774035643892e6d558 from: Stefan Sperling date: Fri Feb 13 21:19:25 2026 UTC fix double-slash in gotwebd login URL introduced in previous commit The configuration file parser ensures that repos_path will be an absolute path. We don't need to manually add another path separator here. commit - dca4220f4aa2f7af92383fe1e31d2f8ff7e11b305c61377ef6d62fa5035727d4 commit + 5d8286806344cf1e286772e0ff4d44ac9d6cfdb4721879774035643892e6d558 blob - 23560b79c2a1b5547a2a2d85b159c170110f3fa5c8c0bc83a36a9fff3e1e94b0 blob + f63b8a470f80841dc4ccd0d4a479576322674707819719423be305aa188abf71 --- gotwebd/login.c +++ gotwebd/login.c @@ -578,8 +578,8 @@ client_read(struct bufferevent *bev, void *d) !got_path_is_root_dir(srv->repos_url_path)) repos_path = srv->repos_url_path; - if (evbuffer_add_printf(out, "ok https://%s%s%s%s/?login=%s\n", - hostname, path ? path : "", path ? "/" : "", + if (evbuffer_add_printf(out, "ok https://%s%s%s/?login=%s\n", + hostname, path ? path : "", repos_path ? repos_path : "", code) == -1) { log_warnx("%s: evbuffer_add_printf failed", __func__); client_err(bev, EVBUFFER_READ, client);