Prevent potential infinite loop

Ignore-this: 24edfe9248e1b667fcf4d8e151dd50f2

darcs-hash:20090224183601-35ec8-5e86d44c77af33376bd80485689d60c761ff17c6.gz
This commit is contained in:
James Vega 2009-02-25 04:36:01 +10:00
parent d5320fb9f9
commit e0c317dfd4

View File

@ -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;