summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file_txt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index 48358da..78dda6d 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -984,11 +984,11 @@ static int header_check_txt(const unsigned char *buffer, const unsigned int buff
ext="tex";
else if(strstr(buffer_lower, "#include")!=NULL)
ext="c";
- else if(strstr(buffer_lower, "<%@")!=NULL)
+ else if(l>20 && strstr(buffer_lower, "<%@")!=NULL)
ext="jsp";
- else if(strstr(buffer_lower, "<%=")!=NULL)
+ else if(l>20 && strstr(buffer_lower, "<%=")!=NULL)
ext="jsp";
- else if(strstr(buffer_lower, "<% ")!=NULL)
+ else if(l>20 && strstr(buffer_lower, "<% ")!=NULL)
ext="asp";
else if(strstr(buffer_lower, "<html")!=NULL)
ext="html";