X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/1fdde95a5a169ad2240460b1d3f25bae606527f5..6421dc38db02eff8d3ada93e87a2f7e5292af131:/cgit.c diff --git a/cgit.c b/cgit.c index 608cab6..5301840 100644 --- a/cgit.c +++ b/cgit.c @@ -31,6 +31,8 @@ void config_cb(const char *name, const char *value) ctx.cfg.favicon = xstrdup(value); else if (!strcmp(name, "footer")) ctx.cfg.footer = xstrdup(value); + else if (!strcmp(name, "header")) + ctx.cfg.header = xstrdup(value); else if (!strcmp(name, "logo")) ctx.cfg.logo = xstrdup(value); else if (!strcmp(name, "index-header")) @@ -130,6 +132,9 @@ void config_cb(const char *name, const char *value) static void querystring_cb(const char *name, const char *value) { + if (!value) + value = ""; + if (!strcmp(name,"r")) { ctx.qry.repo = xstrdup(value); ctx.repo = cgit_get_repoinfo(value);