diff options
author | tenox <as@tenoware.com> | 2016-08-21 09:43:46 -0700 |
---|---|---|
committer | tenox <as@tenoware.com> | 2016-08-21 09:43:46 -0700 |
commit | b6e3b402faee30fa8cb4a6b43bd34151e2f4a1bc (patch) | |
tree | ab3fba8b13ef9dacb373b7fd874cfcb7a58b7cd1 /wfm.c | |
parent | 9ba4ccaa9c93f89ad4d1162498858798bf7247b7 (diff) | |
download | wfm-b6e3b402faee30fa8cb4a6b43bd34151e2f4a1bc.tar.gz |
more JS fixes
Diffstat (limited to 'wfm.c')
-rw-r--r-- | wfm.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |