mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 05:56:25 +08:00
Prevent potential infinite loop
Ignore-this: 24edfe9248e1b667fcf4d8e151dd50f2 darcs-hash:20090224183601-35ec8-5e86d44c77af33376bd80485689d60c761ff17c6.gz
This commit is contained in:
parent
d5320fb9f9
commit
e0c317dfd4
2
mimedb.c
2
mimedb.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user