Fossil SCM

Fix the default robot-restrict string in the /secaudit0 page.

drh 2026-08-06 16:19 UTC trunk
Commit ecb12ac26ebd34cfe00f4823cd799565c0b55ce5cb4c2d1011e2ca1e82861520
1 file changed +1 -1
--- src/security_audit.c
+++ src/security_audit.c
@@ -731,11 +731,11 @@
731731
if( z && atof(z)>0.0 ){
732732
@ <li> Maximum load average for expensive requests: %h(z);
733733
}else{
734734
@ <li> No limits on the load average
735735
}
736
- z = db_get("robot-restrict",0);
736
+ z = db_get("robot-restrict",robot_restrict_default());
737737
if( z==0 || strcmp(z,"off")==0 ){
738738
@ <li> Robots are not excluded from any page.
739739
}else if( z[0]=='*' && z[1]==0 ){
740740
@ <li> Robots are excluded from all pages other than /login.
741741
}else{
742742
--- 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

Keyboard Shortcuts

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