Skip to content

Commit

Permalink
Wand: Do not handle text/* file types
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipberndt committed Apr 13, 2015
1 parent e7f0df9 commit 19b73c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backends/wand.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ void file_type_wand_initializer(file_type_handler_t *info) {/*{{{*/
for(i=0; i<count; i++) {
// Skip some broken formats
if(!strcmp(formats[i], "DJVU")) continue; // DJVU crashes my development PC
if(!strcmp(formats[i], "TXT")) continue; // Ridiculous formats for an image viewer
if(!strcmp(formats[i], "HTML")) continue;
if(formats[i][0] != 0 && formats[i][1] == 0) continue; // One letter extensions are too random to be sure it's an image,
// and hence they are raw format's would always succeed to load

Expand Down

0 comments on commit 19b73c4

Please sign in to comment.