Fossil SCM
Fix the default robot-restrict string in the /secaudit0 page.
Commit
ecb12ac26ebd34cfe00f4823cd799565c0b55ce5cb4c2d1011e2ca1e82861520
Parent
3e0731f42eea2ed…
1 file changed
+1
-1
+1
-1
| --- src/security_audit.c | ||
| +++ src/security_audit.c | ||
| @@ -731,11 +731,11 @@ | ||
| 731 | 731 | if( z && atof(z)>0.0 ){ |
| 732 | 732 | @ <li> Maximum load average for expensive requests: %h(z); |
| 733 | 733 | }else{ |
| 734 | 734 | @ <li> No limits on the load average |
| 735 | 735 | } |
| 736 | - z = db_get("robot-restrict",0); | |
| 736 | + z = db_get("robot-restrict",robot_restrict_default()); | |
| 737 | 737 | if( z==0 || strcmp(z,"off")==0 ){ |
| 738 | 738 | @ <li> Robots are not excluded from any page. |
| 739 | 739 | }else if( z[0]=='*' && z[1]==0 ){ |
| 740 | 740 | @ <li> Robots are excluded from all pages other than /login. |
| 741 | 741 | }else{ |
| 742 | 742 |
| --- src/security_audit.c | |
| +++ src/security_audit.c | |
| @@ -731,11 +731,11 @@ | |
| 731 | if( z && atof(z)>0.0 ){ |
| 732 | @ <li> Maximum load average for expensive requests: %h(z); |
| 733 | }else{ |
| 734 | @ <li> No limits on the load average |
| 735 | } |
| 736 | z = db_get("robot-restrict",0); |
| 737 | if( z==0 || strcmp(z,"off")==0 ){ |
| 738 | @ <li> Robots are not excluded from any page. |
| 739 | }else if( z[0]=='*' && z[1]==0 ){ |
| 740 | @ <li> Robots are excluded from all pages other than /login. |
| 741 | }else{ |
| 742 |
| --- src/security_audit.c | |
| +++ src/security_audit.c | |
| @@ -731,11 +731,11 @@ | |
| 731 | if( z && atof(z)>0.0 ){ |
| 732 | @ <li> Maximum load average for expensive requests: %h(z); |
| 733 | }else{ |
| 734 | @ <li> No limits on the load average |
| 735 | } |
| 736 | z = db_get("robot-restrict",robot_restrict_default()); |
| 737 | if( z==0 || strcmp(z,"off")==0 ){ |
| 738 | @ <li> Robots are not excluded from any page. |
| 739 | }else if( z[0]=='*' && z[1]==0 ){ |
| 740 | @ <li> Robots are excluded from all pages other than /login. |
| 741 | }else{ |
| 742 |