diff options
author | Lars Hjemli <hjemli@gmail.com> | 2010-09-27 07:58:01 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-09-27 07:58:13 +0200 |
commit | 82a883ede7e47616aba041a5eb36e08666ef9177 (patch) | |
tree | 14acc2bad5ca5375aa08cb946788b6923d72df7c /ui-plain.c | |
parent | RSS items should always use UTC times (diff) | |
download | cgit-pink-82a883ede7e47616aba041a5eb36e08666ef9177.tar.gz cgit-pink-82a883ede7e47616aba041a5eb36e08666ef9177.zip |
Use GIT-1.7.3
This fixes http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-2542. Noticed-by: Silvio Cesare <silvio.cesare@gmail.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | ui-plain.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |