Fossil SCM
Fix over-length lines in the logic.c source file. No logical changes.
Commit
cd11f9218670d52595cd0a2642d4856d868986691950a7ab959a23d0dbf02596
Parent
c921545bff3d704…
1 file changed
+7
-3
+7
-3
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -434,11 +434,13 @@ | ||
| 434 | 434 | if( sqlite3_strglob("*Safari/537.36Mozilla/5.0*", zAgent)==0 ) return 0; |
| 435 | 435 | |
| 436 | 436 | if( sqlite3_strglob("*Firefox/[1-9]*", zAgent)==0 ) return 1; |
| 437 | 437 | if( sqlite3_strglob("*Chrome/[1-9]*", zAgent)==0 ) return 1; |
| 438 | 438 | if( sqlite3_strglob("*(compatible;?MSIE?[1789]*", zAgent)==0 ) return 1; |
| 439 | - if( sqlite3_strglob("*Trident/[1-9]*;?rv:[1-9]*", zAgent)==0 ) return 1; /* IE11+ */ | |
| 439 | + if( sqlite3_strglob("*Trident/[1-9]*;?rv:[1-9]*", zAgent)==0 ){ | |
| 440 | + return 1; /* IE11+ */ | |
| 441 | + } | |
| 440 | 442 | if( sqlite3_strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent)==0 ) return 1; |
| 441 | 443 | return 0; |
| 442 | 444 | } |
| 443 | 445 | if( strncmp(zAgent, "Opera/", 6)==0 ) return 1; |
| 444 | 446 | if( strncmp(zAgent, "Safari/", 7)==0 ) return 1; |
| @@ -906,13 +908,15 @@ | ||
| 906 | 908 | int nDecode = 0; |
| 907 | 909 | char *zDecode = 0; |
| 908 | 910 | const char *zUsername = 0; |
| 909 | 911 | const char *zPasswd = 0; |
| 910 | 912 | |
| 911 | - if( zAuth==0 ) return 0; /* Fail: No Authentication: header */ | |
| 913 | + if( zAuth==0 ) return 0; /* Fail: No Authentication: header */ | |
| 912 | 914 | while( fossil_isspace(zAuth[0]) ) zAuth++; /* Skip leading whitespace */ |
| 913 | - if( strncmp(zAuth, "Basic ", 6)!=0 ) return 0; /* Fail: Not Basic Authentication */ | |
| 915 | + if( strncmp(zAuth, "Basic ", 6)!=0 ){ | |
| 916 | + return 0; /* Fail: Not Basic Authentication */ | |
| 917 | + } | |
| 914 | 918 | |
| 915 | 919 | /* Parse out the username and password, separated by a ":" */ |
| 916 | 920 | zAuth += 6; |
| 917 | 921 | while( fossil_isspace(zAuth[0]) ) zAuth++; |
| 918 | 922 | zDecode = decode64(zAuth, &nDecode); |
| 919 | 923 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -434,11 +434,13 @@ | |
| 434 | if( sqlite3_strglob("*Safari/537.36Mozilla/5.0*", zAgent)==0 ) return 0; |
| 435 | |
| 436 | if( sqlite3_strglob("*Firefox/[1-9]*", zAgent)==0 ) return 1; |
| 437 | if( sqlite3_strglob("*Chrome/[1-9]*", zAgent)==0 ) return 1; |
| 438 | if( sqlite3_strglob("*(compatible;?MSIE?[1789]*", zAgent)==0 ) return 1; |
| 439 | if( sqlite3_strglob("*Trident/[1-9]*;?rv:[1-9]*", zAgent)==0 ) return 1; /* IE11+ */ |
| 440 | if( sqlite3_strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent)==0 ) return 1; |
| 441 | return 0; |
| 442 | } |
| 443 | if( strncmp(zAgent, "Opera/", 6)==0 ) return 1; |
| 444 | if( strncmp(zAgent, "Safari/", 7)==0 ) return 1; |
| @@ -906,13 +908,15 @@ | |
| 906 | int nDecode = 0; |
| 907 | char *zDecode = 0; |
| 908 | const char *zUsername = 0; |
| 909 | const char *zPasswd = 0; |
| 910 | |
| 911 | if( zAuth==0 ) return 0; /* Fail: No Authentication: header */ |
| 912 | while( fossil_isspace(zAuth[0]) ) zAuth++; /* Skip leading whitespace */ |
| 913 | if( strncmp(zAuth, "Basic ", 6)!=0 ) return 0; /* Fail: Not Basic Authentication */ |
| 914 | |
| 915 | /* Parse out the username and password, separated by a ":" */ |
| 916 | zAuth += 6; |
| 917 | while( fossil_isspace(zAuth[0]) ) zAuth++; |
| 918 | zDecode = decode64(zAuth, &nDecode); |
| 919 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -434,11 +434,13 @@ | |
| 434 | if( sqlite3_strglob("*Safari/537.36Mozilla/5.0*", zAgent)==0 ) return 0; |
| 435 | |
| 436 | if( sqlite3_strglob("*Firefox/[1-9]*", zAgent)==0 ) return 1; |
| 437 | if( sqlite3_strglob("*Chrome/[1-9]*", zAgent)==0 ) return 1; |
| 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; |
| @@ -906,13 +908,15 @@ | |
| 908 | int nDecode = 0; |
| 909 | char *zDecode = 0; |
| 910 | const char *zUsername = 0; |
| 911 | const char *zPasswd = 0; |
| 912 | |
| 913 | if( zAuth==0 ) return 0; /* Fail: No Authentication: header */ |
| 914 | while( fossil_isspace(zAuth[0]) ) zAuth++; /* Skip leading whitespace */ |
| 915 | if( strncmp(zAuth, "Basic ", 6)!=0 ){ |
| 916 | return 0; /* Fail: Not Basic Authentication */ |
| 917 | } |
| 918 | |
| 919 | /* Parse out the username and password, separated by a ":" */ |
| 920 | zAuth += 6; |
| 921 | while( fossil_isspace(zAuth[0]) ) zAuth++; |
| 922 | zDecode = decode64(zAuth, &nDecode); |
| 923 |