Skip to content

Commit

Permalink
Prevent potential infinite loop
Browse files Browse the repository at this point in the history
Ignore-this: 24edfe9248e1b667fcf4d8e151dd50f2

darcs-hash:20090224183601-35ec8-5e86d44c77af33376bd80485689d60c761ff17c6.gz
  • Loading branch information
jamessan committed Feb 24, 2009
1 parent d5320fb commit e0c317d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mimedb.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ static char *get_action( const char *mimetype )
Core 3) we also test some common subclassings.
*/

if( strncmp( mimetype, "text/", 5 ) == 0 )
if( strncmp( mimetype, "text/plain", 10) != 0 && strncmp( mimetype, "text/", 5 ) == 0 )
return get_action( "text/plain" );

return 0;
Expand Down

0 comments on commit e0c317d

Please sign in to comment.