Fossil SCM

Fix over-length lines in the logic.c source file. No logical changes.

drh 2019-07-23 18:20 trunk
Commit cd11f9218670d52595cd0a2642d4856d868986691950a7ab959a23d0dbf02596
1 file changed +7 -3
+7 -3
--- src/login.c
+++ src/login.c
@@ -434,11 +434,13 @@
434434
if( sqlite3_strglob("*Safari/537.36Mozilla/5.0*", zAgent)==0 ) return 0;
435435
436436
if( sqlite3_strglob("*Firefox/[1-9]*", zAgent)==0 ) return 1;
437437
if( sqlite3_strglob("*Chrome/[1-9]*", zAgent)==0 ) return 1;
438438
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
+ }
440442
if( sqlite3_strglob("*AppleWebKit/[1-9]*(KHTML*", zAgent)==0 ) return 1;
441443
return 0;
442444
}
443445
if( strncmp(zAgent, "Opera/", 6)==0 ) return 1;
444446
if( strncmp(zAgent, "Safari/", 7)==0 ) return 1;
@@ -906,13 +908,15 @@
906908
int nDecode = 0;
907909
char *zDecode = 0;
908910
const char *zUsername = 0;
909911
const char *zPasswd = 0;
910912
911
- if( zAuth==0 ) return 0; /* Fail: No Authentication: header */
913
+ if( zAuth==0 ) return 0; /* Fail: No Authentication: header */
912914
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
+ }
914918
915919
/* Parse out the username and password, separated by a ":" */
916920
zAuth += 6;
917921
while( fossil_isspace(zAuth[0]) ) zAuth++;
918922
zDecode = decode64(zAuth, &nDecode);
919923
--- 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

Keyboard Shortcuts

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