Fossil SCM
Restrict the use of the new "tarzip" parameter to non-robots.
Commit
d568a2fb544048f5b45b40ee897131d7e8d72dcf78c7f65d029956c4cdeec8e3
Parent
2dc364f6a3c6211…
1 file changed
+3
-1
+3
-1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1894,11 +1894,13 @@ | ||
| 1894 | 1894 | || (bisectLocal && !g.perm.Setup) |
| 1895 | 1895 | ){ |
| 1896 | 1896 | login_needed(g.anon.Read && g.anon.RdTkt && g.anon.RdWiki); |
| 1897 | 1897 | return; |
| 1898 | 1898 | } |
| 1899 | - if( (zBefore || zCirca) && robot_restrict("timelineX") ) return; | |
| 1899 | + if( zBefore || zCirca || PB("tarzip") ){ | |
| 1900 | + if( robot_restrict("timelineX") ) return; | |
| 1901 | + } | |
| 1900 | 1902 | if( !bisectLocal ){ |
| 1901 | 1903 | etag_check(ETAG_QUERY|ETAG_COOKIE|ETAG_DATA|ETAG_CONFIG, 0); |
| 1902 | 1904 | } |
| 1903 | 1905 | cookie_read_parameter("y","y"); |
| 1904 | 1906 | zType = P("y"); |
| 1905 | 1907 |
| --- 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 |