Unidiff1 files changed, 2 insertions, 0 deletions
|
diff --git a/cgit.c b/cgit.c index bd37788..a17f40d 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -208,8 +208,10 @@ static void querystring_cb(const char *name, const char *value) |
208 | ctx.repo = cgit_get_repoinfo(value); |
208 | ctx.repo = cgit_get_repoinfo(value); |
209 | } else if (!strcmp(name, "p")) { |
209 | } else if (!strcmp(name, "p")) { |
210 | ctx.qry.page = xstrdup(value); |
210 | ctx.qry.page = xstrdup(value); |
211 | } else if (!strcmp(name, "url")) { |
211 | } else if (!strcmp(name, "url")) { |
| |
212 | if (*value == '/') |
| |
213 | value++; |
212 | ctx.qry.url = xstrdup(value); |
214 | ctx.qry.url = xstrdup(value); |
213 | cgit_parse_url(value); |
215 | cgit_parse_url(value); |
214 | } else if (!strcmp(name, "qt")) { |
216 | } else if (!strcmp(name, "qt")) { |
215 | ctx.qry.grep = xstrdup(value); |
217 | ctx.qry.grep = xstrdup(value); |
|