From e0c317dfd467a19052eb1698e0e62d8d1b4a7ac9 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 25 Feb 2009 04:36:01 +1000 Subject: [PATCH] Prevent potential infinite loop Ignore-this: 24edfe9248e1b667fcf4d8e151dd50f2 darcs-hash:20090224183601-35ec8-5e86d44c77af33376bd80485689d60c761ff17c6.gz --- mimedb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mimedb.c b/mimedb.c index d63a1ac..46061ec 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;