Fossil SCM
Fix incorrect form generation for zip pages from redirected anonymous login. This only happens when the zip permission is only allowed after anonymous login is successful.
Commit
167dec48fbbc2d4891191189eeeb41e163e02c1a
Parent
52e3d9d845d1d1a…
1 file changed
+1
-1
+1
-1
| --- src/zip.c | ||
| +++ src/zip.c | ||
| @@ -475,11 +475,11 @@ | ||
| 475 | 475 | @ Not found |
| 476 | 476 | return; |
| 477 | 477 | } |
| 478 | 478 | if( referred_from_login() ){ |
| 479 | 479 | style_header("ZIP Archive Download"); |
| 480 | - @ <form action='%R/zip'> | |
| 480 | + @ <form action='%R/zip/%h(zName).zip'> | |
| 481 | 481 | cgi_query_parameters_to_hidden(); |
| 482 | 482 | @ <p>ZIP Archive named <b>%h(zName).zip</b> holding the content |
| 483 | 483 | @ of check-in <b>%h(zRid)</b>: |
| 484 | 484 | @ <input type="submit" value="Download" /> |
| 485 | 485 | @ </form> |
| 486 | 486 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -475,11 +475,11 @@ | |
| 475 | @ Not found |
| 476 | return; |
| 477 | } |
| 478 | if( referred_from_login() ){ |
| 479 | style_header("ZIP Archive Download"); |
| 480 | @ <form action='%R/zip'> |
| 481 | cgi_query_parameters_to_hidden(); |
| 482 | @ <p>ZIP Archive named <b>%h(zName).zip</b> holding the content |
| 483 | @ of check-in <b>%h(zRid)</b>: |
| 484 | @ <input type="submit" value="Download" /> |
| 485 | @ </form> |
| 486 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -475,11 +475,11 @@ | |
| 475 | @ Not found |
| 476 | return; |
| 477 | } |
| 478 | if( referred_from_login() ){ |
| 479 | style_header("ZIP Archive Download"); |
| 480 | @ <form action='%R/zip/%h(zName).zip'> |
| 481 | cgi_query_parameters_to_hidden(); |
| 482 | @ <p>ZIP Archive named <b>%h(zName).zip</b> holding the content |
| 483 | @ of check-in <b>%h(zRid)</b>: |
| 484 | @ <input type="submit" value="Download" /> |
| 485 | @ </form> |
| 486 |