diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-06-19 11:24:22 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-06-19 11:24:22 +0000 |
commit | afa2198a16f7af206e59701ec3c671ad655a2dce (patch) | |
tree | f82183c6b92cd1fdffe6ea4d904e4a9fecec5946 /amiga/filetype.c | |
parent | 548e1f2f774ab2282eb7ea95dfde5d5f78ded29c (diff) | |
download | netsurf-afa2198a16f7af206e59701ec3c671ad655a2dce.tar.gz netsurf-afa2198a16f7af206e59701ec3c671ad655a2dce.tar.bz2 |
translate / to - when guessing mime types
svn path=/trunk/netsurf/; revision=12492
Diffstat (limited to 'amiga/filetype.c')
-rw-r--r-- | amiga/filetype.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/amiga/filetype.c b/amiga/filetype.c index ceff1c8a4..0a8d9a4a0 100644 --- a/amiga/filetype.c +++ b/amiga/filetype.c @@ -372,6 +372,7 @@ APTR ami_mime_guess_add_datatype(struct DataType *dt, lwc_string **lwc_mimetype) while(*p != '\0') { if(*p == ' ') *p = '-'; + if(*p == '/') *p = '-'; p++; } @@ -634,7 +635,7 @@ void ami_mime_dump(void) while(mimeentry = ami_mime_entry_locate(NULL, AMI_MIME_MIMETYPE, &node)) { - LOG(("%s DT=%s TYPE=%s CMD=%s", + LOG(("%s DT=\"%s\" TYPE=\"%s\" CMD=\"%s\"", mimeentry->mimetype ? lwc_string_data(mimeentry->mimetype) : "", mimeentry->datatype ? lwc_string_data(mimeentry->datatype) : "", mimeentry->filetype ? lwc_string_data(mimeentry->filetype) : "", |