Fossil SCM

Add a comment explaining why document.body's z-level is explicitly set to 0. Remove some EOL whitespace.

stephan 2025-08-17 13:21 robotck-instant
Commit 7c57a20ebd8e62168055426b6d639a26cc9ed6e51d81d55019202c280893c91d
2 files changed +3 -3 +1
+3 -3
--- src/robot.c
+++ src/robot.c
@@ -71,11 +71,11 @@
7171
/* If there is already a proof-of-work cookie with this value
7272
** that means that the user agent has already authenticated.
7373
*/
7474
z = P(ROBOT_COOKIE);
7575
if( z
76
- && (atoi(z)==h1 || atoi(z)==h2)
76
+ && (atoi(z)==h1 || atoi(z)==h2)
7777
&& !cgi_is_qp(ROBOT_COOKIE) ){
7878
return 0;
7979
}
8080
8181
/* Check for a proof query parameter. If found, that means that
@@ -132,14 +132,14 @@
132132
** SETTING: robot-restrict width=40 block-text
133133
** The VALUE of this setting is a list of GLOB patterns that match
134134
** pages for which complex HTTP requests from unauthenicated clients
135135
** should be disallowed. "Unauthenticated" means the user is "nobody".
136136
** The recommended value for this setting is:
137
-**
137
+**
138138
** timelineX,diff,annotate,zip,fileage,file
139139
**
140
-** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and
140
+** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and
141141
** /vpatch. The "annotate" tag also covers /blame and /praise. "zip"
142142
** also covers /tarball and /sqlar. If a tag has an "X" character appended,
143143
** then it only applies if query parameters are such that the page is
144144
** particularly difficult to compute.
145145
**
146146
--- src/robot.c
+++ src/robot.c
@@ -71,11 +71,11 @@
71 /* If there is already a proof-of-work cookie with this value
72 ** that means that the user agent has already authenticated.
73 */
74 z = P(ROBOT_COOKIE);
75 if( z
76 && (atoi(z)==h1 || atoi(z)==h2)
77 && !cgi_is_qp(ROBOT_COOKIE) ){
78 return 0;
79 }
80
81 /* Check for a proof query parameter. If found, that means that
@@ -132,14 +132,14 @@
132 ** SETTING: robot-restrict width=40 block-text
133 ** The VALUE of this setting is a list of GLOB patterns that match
134 ** pages for which complex HTTP requests from unauthenicated clients
135 ** should be disallowed. "Unauthenticated" means the user is "nobody".
136 ** The recommended value for this setting is:
137 **
138 ** timelineX,diff,annotate,zip,fileage,file
139 **
140 ** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and
141 ** /vpatch. The "annotate" tag also covers /blame and /praise. "zip"
142 ** also covers /tarball and /sqlar. If a tag has an "X" character appended,
143 ** then it only applies if query parameters are such that the page is
144 ** particularly difficult to compute.
145 **
146
--- src/robot.c
+++ src/robot.c
@@ -71,11 +71,11 @@
71 /* If there is already a proof-of-work cookie with this value
72 ** that means that the user agent has already authenticated.
73 */
74 z = P(ROBOT_COOKIE);
75 if( z
76 && (atoi(z)==h1 || atoi(z)==h2)
77 && !cgi_is_qp(ROBOT_COOKIE) ){
78 return 0;
79 }
80
81 /* Check for a proof query parameter. If found, that means that
@@ -132,14 +132,14 @@
132 ** SETTING: robot-restrict width=40 block-text
133 ** The VALUE of this setting is a list of GLOB patterns that match
134 ** pages for which complex HTTP requests from unauthenicated clients
135 ** should be disallowed. "Unauthenticated" means the user is "nobody".
136 ** The recommended value for this setting is:
137 **
138 ** timelineX,diff,annotate,zip,fileage,file
139 **
140 ** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and
141 ** /vpatch. The "annotate" tag also covers /blame and /praise. "zip"
142 ** also covers /tarball and /sqlar. If a tag has an "X" character appended,
143 ** then it only applies if query parameters are such that the page is
144 ** particularly difficult to compute.
145 **
146
--- src/style.c
+++ src/style.c
@@ -827,10 +827,11 @@
827827
@ <div class="debug">
828828
cgi_print_all(0, 0, 0);
829829
@ </div>
830830
}
831831
@ <style>body { z-index: 0 }</style>
832
+ /* ^^^^ part of robot.c:robot_proofofwork() */
832833
fossil_free(zTitle);
833834
}
834835
835836
#if INTERFACE
836837
/* Allowed parameters for style_adunit() */
837838
--- src/style.c
+++ src/style.c
@@ -827,10 +827,11 @@
827 @ <div class="debug">
828 cgi_print_all(0, 0, 0);
829 @ </div>
830 }
831 @ <style>body { z-index: 0 }</style>
 
832 fossil_free(zTitle);
833 }
834
835 #if INTERFACE
836 /* Allowed parameters for style_adunit() */
837
--- src/style.c
+++ src/style.c
@@ -827,10 +827,11 @@
827 @ <div class="debug">
828 cgi_print_all(0, 0, 0);
829 @ </div>
830 }
831 @ <style>body { z-index: 0 }</style>
832 /* ^^^^ part of robot.c:robot_proofofwork() */
833 fossil_free(zTitle);
834 }
835
836 #if INTERFACE
837 /* Allowed parameters for style_adunit() */
838

Keyboard Shortcuts

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