|
diff --git a/cgit.c b/cgit.c index e9bafb5..9452884 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -243,24 +243,26 @@ static void querystring_cb(const char *name, const char *value) |
243 | } else if (!strcmp(name, "mimetype")) { |
243 | } else if (!strcmp(name, "mimetype")) { |
244 | ctx.qry.mimetype = xstrdup(value); |
244 | ctx.qry.mimetype = xstrdup(value); |
245 | } else if (!strcmp(name, "s")){ |
245 | } else if (!strcmp(name, "s")){ |
246 | ctx.qry.sort = xstrdup(value); |
246 | ctx.qry.sort = xstrdup(value); |
247 | } else if (!strcmp(name, "showmsg")) { |
247 | } else if (!strcmp(name, "showmsg")) { |
248 | ctx.qry.showmsg = atoi(value); |
248 | ctx.qry.showmsg = atoi(value); |
249 | } else if (!strcmp(name, "period")) { |
249 | } else if (!strcmp(name, "period")) { |
250 | ctx.qry.period = xstrdup(value); |
250 | ctx.qry.period = xstrdup(value); |
251 | } else if (!strcmp(name, "ss")) { |
251 | } else if (!strcmp(name, "ss")) { |
252 | ctx.qry.ssdiff = atoi(value); |
252 | ctx.qry.ssdiff = atoi(value); |
253 | } else if (!strcmp(name, "context")) { |
253 | } else if (!strcmp(name, "context")) { |
254 | ctx.qry.context = atoi(value); |
254 | ctx.qry.context = atoi(value); |
| |
255 | } else if (!strcmp(name, "ignorews")) { |
| |
256 | ctx.qry.ignorews = atoi(value); |
255 | } |
257 | } |
256 | } |
258 | } |
257 | |
259 | |
258 | char *xstrdupn(const char *str) |
260 | char *xstrdupn(const char *str) |
259 | { |
261 | { |
260 | return (str ? xstrdup(str) : NULL); |
262 | return (str ? xstrdup(str) : NULL); |
261 | } |
263 | } |
262 | |
264 | |
263 | static void prepare_context(struct cgit_context *ctx) |
265 | static void prepare_context(struct cgit_context *ctx) |
264 | { |
266 | { |
265 | memset(ctx, 0, sizeof(*ctx)); |
267 | memset(ctx, 0, sizeof(*ctx)); |
266 | ctx->cfg.agefile = "info/web/last-modified"; |
268 | ctx->cfg.agefile = "info/web/last-modified"; |
|