diff options
author | James Vega <jamessan@jamessan.com> | 2009-02-25 04:36:01 +1000 |
---|---|---|
committer | James Vega <jamessan@jamessan.com> | 2009-02-25 04:36:01 +1000 |
commit | e0c317dfd467a19052eb1698e0e62d8d1b4a7ac9 (patch) | |
tree | 75cbe4dcbd5afe6c636a7bd131f6ee3b2011ee30 /mimedb.c | |
parent | d5320fb9f931a338cf19d5fb0e205ff8e0ac90b8 (diff) |
Prevent potential infinite loop
Ignore-this: 24edfe9248e1b667fcf4d8e151dd50f2
darcs-hash:20090224183601-35ec8-5e86d44c77af33376bd80485689d60c761ff17c6.gz
Diffstat (limited to 'mimedb.c')
-rw-r--r-- | mimedb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |