Fossil SCM
Add a comment explaining why document.body's z-level is explicitly set to 0. Remove some EOL whitespace.
Commit
7c57a20ebd8e62168055426b6d639a26cc9ed6e51d81d55019202c280893c91d
Parent
c27cfa9f6077e1a…
2 files changed
+3
-3
+1
+3
-3
| --- src/robot.c | ||
| +++ src/robot.c | ||
| @@ -71,11 +71,11 @@ | ||
| 71 | 71 | /* If there is already a proof-of-work cookie with this value |
| 72 | 72 | ** that means that the user agent has already authenticated. |
| 73 | 73 | */ |
| 74 | 74 | z = P(ROBOT_COOKIE); |
| 75 | 75 | if( z |
| 76 | - && (atoi(z)==h1 || atoi(z)==h2) | |
| 76 | + && (atoi(z)==h1 || atoi(z)==h2) | |
| 77 | 77 | && !cgi_is_qp(ROBOT_COOKIE) ){ |
| 78 | 78 | return 0; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /* Check for a proof query parameter. If found, that means that |
| @@ -132,14 +132,14 @@ | ||
| 132 | 132 | ** SETTING: robot-restrict width=40 block-text |
| 133 | 133 | ** The VALUE of this setting is a list of GLOB patterns that match |
| 134 | 134 | ** pages for which complex HTTP requests from unauthenicated clients |
| 135 | 135 | ** should be disallowed. "Unauthenticated" means the user is "nobody". |
| 136 | 136 | ** The recommended value for this setting is: |
| 137 | -** | |
| 137 | +** | |
| 138 | 138 | ** timelineX,diff,annotate,zip,fileage,file |
| 139 | 139 | ** |
| 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 | |
| 141 | 141 | ** /vpatch. The "annotate" tag also covers /blame and /praise. "zip" |
| 142 | 142 | ** also covers /tarball and /sqlar. If a tag has an "X" character appended, |
| 143 | 143 | ** then it only applies if query parameters are such that the page is |
| 144 | 144 | ** particularly difficult to compute. |
| 145 | 145 | ** |
| 146 | 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/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 |
+1
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -827,10 +827,11 @@ | ||
| 827 | 827 | @ <div class="debug"> |
| 828 | 828 | cgi_print_all(0, 0, 0); |
| 829 | 829 | @ </div> |
| 830 | 830 | } |
| 831 | 831 | @ <style>body { z-index: 0 }</style> |
| 832 | + /* ^^^^ part of robot.c:robot_proofofwork() */ | |
| 832 | 833 | fossil_free(zTitle); |
| 833 | 834 | } |
| 834 | 835 | |
| 835 | 836 | #if INTERFACE |
| 836 | 837 | /* Allowed parameters for style_adunit() */ |
| 837 | 838 |
| --- 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 |