]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.c
Merge branch 'stable'
[cgit.git] / cgit.c
diff --git a/cgit.c b/cgit.c
index 6bb712de0d3d6548fa34174fbb2d2cf61c5078fc..bfde9f98ccfdf1c793aa1d70e1558e90a4b5ace5 100644 (file)
--- 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")) {