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.

andybradford 2015-11-29 03:51 trunk merge
Commit 167dec48fbbc2d4891191189eeeb41e163e02c1a
1 file changed +1 -1
+1 -1
--- src/zip.c
+++ src/zip.c
@@ -475,11 +475,11 @@
475475
@ Not found
476476
return;
477477
}
478478
if( referred_from_login() ){
479479
style_header("ZIP Archive Download");
480
- @ <form action='%R/zip'>
480
+ @ <form action='%R/zip/%h(zName).zip'>
481481
cgi_query_parameters_to_hidden();
482482
@ <p>ZIP Archive named <b>%h(zName).zip</b> holding the content
483483
@ of check-in <b>%h(zRid)</b>:
484484
@ <input type="submit" value="Download" />
485485
@ </form>
486486
--- 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

Keyboard Shortcuts

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