aboutsummaryrefslogtreecommitdiffhomepage
path: root/mimedb.c
diff options
context:
space:
mode:
authorGravatar James Vega <jamessan@jamessan.com>2009-02-25 04:36:01 +1000
committerGravatar James Vega <jamessan@jamessan.com>2009-02-25 04:36:01 +1000
commite0c317dfd467a19052eb1698e0e62d8d1b4a7ac9 (patch)
tree75cbe4dcbd5afe6c636a7bd131f6ee3b2011ee30 /mimedb.c
parentd5320fb9f931a338cf19d5fb0e205ff8e0ac90b8 (diff)
Prevent potential infinite loop
Ignore-this: 24edfe9248e1b667fcf4d8e151dd50f2 darcs-hash:20090224183601-35ec8-5e86d44c77af33376bd80485689d60c761ff17c6.gz
Diffstat (limited to 'mimedb.c')
-rw-r--r--mimedb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mimedb.c b/mimedb.c
index d63a1ac0..46061ec3 100644
--- a/mimedb.c
+++ b/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;