Fossil SCM

Restrict the use of the new "tarzip" parameter to non-robots.

drh 2025-10-17 12:57 timeline-enhance-2025
Commit d568a2fb544048f5b45b40ee897131d7e8d72dcf78c7f65d029956c4cdeec8e3
1 file changed +3 -1
+3 -1
--- src/timeline.c
+++ src/timeline.c
@@ -1894,11 +1894,13 @@
18941894
|| (bisectLocal && !g.perm.Setup)
18951895
){
18961896
login_needed(g.anon.Read && g.anon.RdTkt && g.anon.RdWiki);
18971897
return;
18981898
}
1899
- if( (zBefore || zCirca) && robot_restrict("timelineX") ) return;
1899
+ if( zBefore || zCirca || PB("tarzip") ){
1900
+ if( robot_restrict("timelineX") ) return;
1901
+ }
19001902
if( !bisectLocal ){
19011903
etag_check(ETAG_QUERY|ETAG_COOKIE|ETAG_DATA|ETAG_CONFIG, 0);
19021904
}
19031905
cookie_read_parameter("y","y");
19041906
zType = P("y");
19051907
--- src/timeline.c
+++ src/timeline.c
@@ -1894,11 +1894,13 @@
1894 || (bisectLocal && !g.perm.Setup)
1895 ){
1896 login_needed(g.anon.Read && g.anon.RdTkt && g.anon.RdWiki);
1897 return;
1898 }
1899 if( (zBefore || zCirca) && robot_restrict("timelineX") ) return;
 
 
1900 if( !bisectLocal ){
1901 etag_check(ETAG_QUERY|ETAG_COOKIE|ETAG_DATA|ETAG_CONFIG, 0);
1902 }
1903 cookie_read_parameter("y","y");
1904 zType = P("y");
1905
--- src/timeline.c
+++ src/timeline.c
@@ -1894,11 +1894,13 @@
1894 || (bisectLocal && !g.perm.Setup)
1895 ){
1896 login_needed(g.anon.Read && g.anon.RdTkt && g.anon.RdWiki);
1897 return;
1898 }
1899 if( zBefore || zCirca || PB("tarzip") ){
1900 if( robot_restrict("timelineX") ) return;
1901 }
1902 if( !bisectLocal ){
1903 etag_check(ETAG_QUERY|ETAG_COOKIE|ETAG_DATA|ETAG_CONFIG, 0);
1904 }
1905 cookie_read_parameter("y","y");
1906 zType = P("y");
1907

Keyboard Shortcuts

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