From 82a883ede7e47616aba041a5eb36e08666ef9177 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 27 Sep 2010 07:58:01 +0200 Subject: Use GIT-1.7.3 This fixes http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-2542. Noticed-by: Silvio Cesare Signed-off-by: Lars Hjemli --- ui-plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-plain.c') diff --git a/ui-plain.c b/ui-plain.c index 66cb19c..5569a7c 100644 --- a/ui-plain.c +++ b/ui-plain.c @@ -35,7 +35,7 @@ static void print_object(const unsigned char *sha1, const char *path) ctx.page.mimetype = NULL; ext = strrchr(path, '.'); if (ext && *(++ext)) { - mime = string_list_lookup(ext, &ctx.cfg.mimetypes); + mime = string_list_lookup(&ctx.cfg.mimetypes, ext); if (mime) ctx.page.mimetype = (char *)mime->util; } -- cgit v1.2.3-70-g09d2