Fossil SCM
Add /reports to the default robot-restrict setting.
Commit
12d871a00a39c81bf1555be15bf5fdfc0e4e069ebc05a1732efeaffe2b98cdc7
Parent
86b6ef7fe342428…
1 file changed
+3
-3
+3
-3
| --- src/robot.c | ||
| +++ src/robot.c | ||
| @@ -253,11 +253,11 @@ | ||
| 253 | 253 | ** The VALUE of this setting is a list of GLOB patterns that match |
| 254 | 254 | ** pages for which complex HTTP requests from unauthenicated clients |
| 255 | 255 | ** should be disallowed. "Unauthenticated" means the user is "nobody". |
| 256 | 256 | ** The recommended value for this setting is: |
| 257 | 257 | ** |
| 258 | -** timelineX,diff,annotate,zip,fileage,file,finfo | |
| 258 | +** timelineX,diff,annotate,zip,fileage,file,finfo,reports | |
| 259 | 259 | ** |
| 260 | 260 | ** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and |
| 261 | 261 | ** /vpatch. The "annotate" tag also covers /blame and /praise. "zip" |
| 262 | 262 | ** also covers /tarball and /sqlar. If a tag has an "X" character appended, |
| 263 | 263 | ** then it only applies if query parameters are such that the page is |
| @@ -287,11 +287,11 @@ | ||
| 287 | 287 | |
| 288 | 288 | /* |
| 289 | 289 | ** Return the default restriction GLOB |
| 290 | 290 | */ |
| 291 | 291 | const char *robot_restrict_default(void){ |
| 292 | - return "timelineX,diff,annotate,zip,fileage,file,finfo"; | |
| 292 | + return "timelineX,diff,annotate,zip,fileage,file,finfo,reports"; | |
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | /* |
| 296 | 296 | ** Return true if zTag matches one of the tags in the robot-restrict |
| 297 | 297 | ** setting. |
| @@ -396,11 +396,11 @@ | ||
| 396 | 396 | if( robot_exception() ){ |
| 397 | 397 | robot.resultCache = KNOWN_NOT_ROBOT; |
| 398 | 398 | return 0; |
| 399 | 399 | } |
| 400 | 400 | |
| 401 | - /* Generate the proof-of-work captcha */ | |
| 401 | + /* Generate the proof-of-work captcha */ | |
| 402 | 402 | ask_for_proof_that_client_is_not_robot(); |
| 403 | 403 | return 1; |
| 404 | 404 | } |
| 405 | 405 | |
| 406 | 406 | /* |
| 407 | 407 |
| --- src/robot.c | |
| +++ src/robot.c | |
| @@ -253,11 +253,11 @@ | |
| 253 | ** The VALUE of this setting is a list of GLOB patterns that match |
| 254 | ** pages for which complex HTTP requests from unauthenicated clients |
| 255 | ** should be disallowed. "Unauthenticated" means the user is "nobody". |
| 256 | ** The recommended value for this setting is: |
| 257 | ** |
| 258 | ** timelineX,diff,annotate,zip,fileage,file,finfo |
| 259 | ** |
| 260 | ** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and |
| 261 | ** /vpatch. The "annotate" tag also covers /blame and /praise. "zip" |
| 262 | ** also covers /tarball and /sqlar. If a tag has an "X" character appended, |
| 263 | ** then it only applies if query parameters are such that the page is |
| @@ -287,11 +287,11 @@ | |
| 287 | |
| 288 | /* |
| 289 | ** Return the default restriction GLOB |
| 290 | */ |
| 291 | const char *robot_restrict_default(void){ |
| 292 | return "timelineX,diff,annotate,zip,fileage,file,finfo"; |
| 293 | } |
| 294 | |
| 295 | /* |
| 296 | ** Return true if zTag matches one of the tags in the robot-restrict |
| 297 | ** setting. |
| @@ -396,11 +396,11 @@ | |
| 396 | if( robot_exception() ){ |
| 397 | robot.resultCache = KNOWN_NOT_ROBOT; |
| 398 | return 0; |
| 399 | } |
| 400 | |
| 401 | /* Generate the proof-of-work captcha */ |
| 402 | ask_for_proof_that_client_is_not_robot(); |
| 403 | return 1; |
| 404 | } |
| 405 | |
| 406 | /* |
| 407 |
| --- src/robot.c | |
| +++ src/robot.c | |
| @@ -253,11 +253,11 @@ | |
| 253 | ** The VALUE of this setting is a list of GLOB patterns that match |
| 254 | ** pages for which complex HTTP requests from unauthenicated clients |
| 255 | ** should be disallowed. "Unauthenticated" means the user is "nobody". |
| 256 | ** The recommended value for this setting is: |
| 257 | ** |
| 258 | ** timelineX,diff,annotate,zip,fileage,file,finfo,reports |
| 259 | ** |
| 260 | ** The "diff" tag covers all diffing pages such as /vdiff, /fdiff, and |
| 261 | ** /vpatch. The "annotate" tag also covers /blame and /praise. "zip" |
| 262 | ** also covers /tarball and /sqlar. If a tag has an "X" character appended, |
| 263 | ** then it only applies if query parameters are such that the page is |
| @@ -287,11 +287,11 @@ | |
| 287 | |
| 288 | /* |
| 289 | ** Return the default restriction GLOB |
| 290 | */ |
| 291 | const char *robot_restrict_default(void){ |
| 292 | return "timelineX,diff,annotate,zip,fileage,file,finfo,reports"; |
| 293 | } |
| 294 | |
| 295 | /* |
| 296 | ** Return true if zTag matches one of the tags in the robot-restrict |
| 297 | ** setting. |
| @@ -396,11 +396,11 @@ | |
| 396 | if( robot_exception() ){ |
| 397 | robot.resultCache = KNOWN_NOT_ROBOT; |
| 398 | return 0; |
| 399 | } |
| 400 | |
| 401 | /* Generate the proof-of-work captcha */ |
| 402 | ask_for_proof_that_client_is_not_robot(); |
| 403 | return 1; |
| 404 | } |
| 405 | |
| 406 | /* |
| 407 |