X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f2bf0a05280edddb4961214adfd7b440191737e2..5c34d96f7e000eb47418ac9e39dabf92b767c9f2:/cgit.c?ds=sidebyside diff --git a/cgit.c b/cgit.c index 6bb712d..bfde9f9 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")) {