X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/9735835c0e9f2c4a0caf5a431fc455d5855472aa..121898e73d6e28656c2d451effc6d9907ebdc5ba:/cgit.c diff --git a/cgit.c b/cgit.c index bd37788..a17f40d 100644 --- a/cgit.c +++ b/cgit.c @@ -209,6 +209,8 @@ static void querystring_cb(const char *name, const char *value) } else if (!strcmp(name, "p")) { ctx.qry.page = xstrdup(value); } else if (!strcmp(name, "url")) { + if (*value == '/') + value++; ctx.qry.url = xstrdup(value); cgit_parse_url(value); } else if (!strcmp(name, "qt")) {