aboutsummaryrefslogtreecommitdiff
path: root/wfm.c
diff options
context:
space:
mode:
authortenox <as@tenoware.com>2016-08-21 09:43:46 -0700
committertenox <as@tenoware.com>2016-08-21 09:43:46 -0700
commitb6e3b402faee30fa8cb4a6b43bd34151e2f4a1bc (patch)
treeab3fba8b13ef9dacb373b7fd874cfcb7a58b7cd1 /wfm.c
parent9ba4ccaa9c93f89ad4d1162498858798bf7247b7 (diff)
downloadwfm-b6e3b402faee30fa8cb4a6b43bd34151e2f4a1bc.tar.gz
more JS fixes
Diffstat (limited to 'wfm.c')
-rw-r--r--wfm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/wfm.c b/wfm.c
index 06226e3..ed14cd7 100644
--- a/wfm.c
+++ b/wfm.c
@@ -442,10 +442,12 @@ int cgiMain(void) {
checkdirectory();
// JavaScript check
- if(strncmp(cgiUserAgent, "Mozilla/4", 9)==0)
- js=1;
- else if(strncmp(cgiUserAgent, "Mozilla/5", 9)==0)
+ if(strncmp(cgiUserAgent, "Mozilla/5", 9)==0)
+ js=2;
+ else if(strncmp(cgiUserAgent, "Mozilla/4.0 (compatible; MSIE 6", 31)==0)
js=2;
+ else if(strncmp(cgiUserAgent, "Mozilla/4", 9)==0)
+ js=1;
else
js=0;