|
diff --git a/cgit.c b/cgit.c index e09c86e..166fbc6 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -151,16 +151,18 @@ static void querystring_cb(const char *name, const char *value) |
151 | } else if (!strcmp(name, "path")) { |
151 | } else if (!strcmp(name, "path")) { |
152 | ctx.qry.path = trim_end(value, '/'); |
152 | ctx.qry.path = trim_end(value, '/'); |
153 | } else if (!strcmp(name, "name")) { |
153 | } else if (!strcmp(name, "name")) { |
154 | ctx.qry.name = xstrdup(value); |
154 | ctx.qry.name = xstrdup(value); |
155 | } else if (!strcmp(name, "mimetype")) { |
155 | } else if (!strcmp(name, "mimetype")) { |
156 | ctx.qry.mimetype = xstrdup(value); |
156 | ctx.qry.mimetype = xstrdup(value); |
157 | } else if (!strcmp(name, "s")){ |
157 | } else if (!strcmp(name, "s")){ |
158 | ctx.qry.sort = xstrdup(value); |
158 | ctx.qry.sort = xstrdup(value); |
| |
159 | } else if (!strcmp(name, "showmsg")) { |
| |
160 | ctx.qry.showmsg = atoi(value); |
159 | } |
161 | } |
160 | } |
162 | } |
161 | |
163 | |
162 | static void prepare_context(struct cgit_context *ctx) |
164 | static void prepare_context(struct cgit_context *ctx) |
163 | { |
165 | { |
164 | memset(ctx, 0, sizeof(ctx)); |
166 | memset(ctx, 0, sizeof(ctx)); |
165 | ctx->cfg.agefile = "info/web/last-modified"; |
167 | ctx->cfg.agefile = "info/web/last-modified"; |
166 | ctx->cfg.nocache = 0; |
168 | ctx->cfg.nocache = 0; |
|