Fossil SCM
Recognize IE11's new UA string.
Commit
07a8e5d08500d2b9f49c5fb35daafacaf36ec1a7
Parent
e08177614b4ba3f…
1 file changed
+1
+1
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -398,10 +398,11 @@ | ||
| 398 | 398 | if( strncmp(zAgent, "Mozilla/", 8)==0 ){ |
| 399 | 399 | if( atoi(&zAgent[8])<4 ) return 0; /* Many bots advertise as Mozilla/3 */ |
| 400 | 400 | if( strglob("*Firefox/[1-9]*", zAgent) ) return 1; |
| 401 | 401 | if( strglob("*Chrome/[1-9]*", zAgent) ) return 1; |
| 402 | 402 | if( strglob("*(compatible;?MSIE?[1789]*", zAgent) ) return 1; |
| 403 | + if( strglob("*Trident/[1-9]*;?rv:[1-9]*", zAgent) ) return 1; /* IE11+ */ | |
| 403 | 404 | if( strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent) ) return 1; |
| 404 | 405 | return 0; |
| 405 | 406 | } |
| 406 | 407 | if( strncmp(zAgent, "Opera/", 6)==0 ) return 1; |
| 407 | 408 | if( strncmp(zAgent, "Safari/", 7)==0 ) return 1; |
| 408 | 409 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -398,10 +398,11 @@ | |
| 398 | if( strncmp(zAgent, "Mozilla/", 8)==0 ){ |
| 399 | if( atoi(&zAgent[8])<4 ) return 0; /* Many bots advertise as Mozilla/3 */ |
| 400 | if( strglob("*Firefox/[1-9]*", zAgent) ) return 1; |
| 401 | if( strglob("*Chrome/[1-9]*", zAgent) ) return 1; |
| 402 | if( strglob("*(compatible;?MSIE?[1789]*", zAgent) ) return 1; |
| 403 | if( strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent) ) return 1; |
| 404 | return 0; |
| 405 | } |
| 406 | if( strncmp(zAgent, "Opera/", 6)==0 ) return 1; |
| 407 | if( strncmp(zAgent, "Safari/", 7)==0 ) return 1; |
| 408 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -398,10 +398,11 @@ | |
| 398 | if( strncmp(zAgent, "Mozilla/", 8)==0 ){ |
| 399 | if( atoi(&zAgent[8])<4 ) return 0; /* Many bots advertise as Mozilla/3 */ |
| 400 | if( strglob("*Firefox/[1-9]*", zAgent) ) return 1; |
| 401 | if( strglob("*Chrome/[1-9]*", zAgent) ) return 1; |
| 402 | if( strglob("*(compatible;?MSIE?[1789]*", zAgent) ) return 1; |
| 403 | if( strglob("*Trident/[1-9]*;?rv:[1-9]*", zAgent) ) return 1; /* IE11+ */ |
| 404 | if( strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent) ) return 1; |
| 405 | return 0; |
| 406 | } |
| 407 | if( strncmp(zAgent, "Opera/", 6)==0 ) return 1; |
| 408 | if( strncmp(zAgent, "Safari/", 7)==0 ) return 1; |
| 409 |