Fossil SCM

Recognize the Pale Moon user agent string.

mistachkin 2020-02-19 21:41 trunk
Commit 6d0be557dc12a4721acbfa0ad9d389a84732f1e7ef70ad7f865b39f5d8c4bfb3
1 file changed +1
--- src/login.c
+++ src/login.c
@@ -438,10 +438,11 @@
438438
if( sqlite3_strglob("*(compatible;?MSIE?[1789]*", zAgent)==0 ) return 1;
439439
if( sqlite3_strglob("*Trident/[1-9]*;?rv:[1-9]*", zAgent)==0 ){
440440
return 1; /* IE11+ */
441441
}
442442
if( sqlite3_strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent)==0 ) return 1;
443
+ if( sqlite3_strglob("*PaleMoon/[1-9]*", zAgent)==0 ) return 1;
443444
return 0;
444445
}
445446
if( strncmp(zAgent, "Opera/", 6)==0 ) return 1;
446447
if( strncmp(zAgent, "Safari/", 7)==0 ) return 1;
447448
if( strncmp(zAgent, "Lynx/", 5)==0 ) return 1;
448449
--- src/login.c
+++ src/login.c
@@ -438,10 +438,11 @@
438 if( sqlite3_strglob("*(compatible;?MSIE?[1789]*", zAgent)==0 ) return 1;
439 if( sqlite3_strglob("*Trident/[1-9]*;?rv:[1-9]*", zAgent)==0 ){
440 return 1; /* IE11+ */
441 }
442 if( sqlite3_strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent)==0 ) return 1;
 
443 return 0;
444 }
445 if( strncmp(zAgent, "Opera/", 6)==0 ) return 1;
446 if( strncmp(zAgent, "Safari/", 7)==0 ) return 1;
447 if( strncmp(zAgent, "Lynx/", 5)==0 ) return 1;
448
--- src/login.c
+++ src/login.c
@@ -438,10 +438,11 @@
438 if( sqlite3_strglob("*(compatible;?MSIE?[1789]*", zAgent)==0 ) return 1;
439 if( sqlite3_strglob("*Trident/[1-9]*;?rv:[1-9]*", zAgent)==0 ){
440 return 1; /* IE11+ */
441 }
442 if( sqlite3_strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent)==0 ) return 1;
443 if( sqlite3_strglob("*PaleMoon/[1-9]*", zAgent)==0 ) return 1;
444 return 0;
445 }
446 if( strncmp(zAgent, "Opera/", 6)==0 ) return 1;
447 if( strncmp(zAgent, "Safari/", 7)==0 ) return 1;
448 if( strncmp(zAgent, "Lynx/", 5)==0 ) return 1;
449

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button