Fossil

Check-in [167dec48]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment: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.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 167dec48fbbc2d4891191189eeeb41e163e02c1a
User & Date: andybradford 2015-11-29 03:51:10.336
Context
2015-11-29
17:33
Fix the backslash-octal escapes on the filename quoting while importing from git. ... (check-in: 09cf1ad8 user: drh tags: trunk)
03:51
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. ... (check-in: 167dec48 user: andybradford tags: trunk)
2015-11-28
19:59
Include the filename in the form action when redirected from login required to avoid needing to use Content-Disposition header to hint the client what the filename is. ... (Closed-Leaf check-in: 5f32bf71 user: andybradford tags: pending-review)
2015-11-24
23:41
Fix compiler warnings seen with MSVC. Add comments. ... (check-in: 52e3d9d8 user: mistachkin tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/zip.c.
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
  rid = name_to_typed_rid(nRid?zRid:zName,"ci");
  if( rid==0 ){
    @ Not found
    return;
  }
  if( referred_from_login() ){
    style_header("ZIP Archive Download");
    @ <form action='%R/zip'>
    cgi_query_parameters_to_hidden();
    @ <p>ZIP Archive named <b>%h(zName).zip</b> holding the content
    @ of check-in <b>%h(zRid)</b>:
    @ <input type="submit" value="Download" />
    @ </form>
    style_footer();
    return;







|







473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
  rid = name_to_typed_rid(nRid?zRid:zName,"ci");
  if( rid==0 ){
    @ Not found
    return;
  }
  if( referred_from_login() ){
    style_header("ZIP Archive Download");
    @ <form action='%R/zip/%h(zName).zip'>
    cgi_query_parameters_to_hidden();
    @ <p>ZIP Archive named <b>%h(zName).zip</b> holding the content
    @ of check-in <b>%h(zRid)</b>:
    @ <input type="submit" value="Download" />
    @ </form>
    style_footer();
    return;