projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b1d7ed
)
* add .vcf to our static file extensions list, so we can surpass xdgmime untill its...
author
Wilfried Göesgens
<willi@citadel.org>
Thu, 26 Feb 2009 23:49:05 +0000
(23:49 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Thu, 26 Feb 2009 23:49:05 +0000
(23:49 +0000)
libcitadel/lib/mime_parser.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/mime_parser.c
b/libcitadel/lib/mime_parser.c
index 6b216ac89523bc8c93474991ef89602c2d85c2be..1505a492ac1a8000d24df8980d67c206b33d8213 100644
(file)
--- a/
libcitadel/lib/mime_parser.c
+++ b/
libcitadel/lib/mime_parser.c
@@
-739,6
+739,8
@@
const char* GuessMimeByFilename(const char *what, size_t len)
return "image/png";
else if ((len > 3) && !strncasecmp(&what[len - 4], ".ico", 4))
return "image/x-icon";
+ else if ((len > 3) && !strncasecmp(&what[len - 4], ".vcf", 4))
+ return "text/x-vcard";
else if ((len > 4) && !strncasecmp(&what[len - 5], ".html", 5))
return "text/html";
else if ((len > 3) && !strncasecmp(&what[len - 4], ".htm", 4))