Fossil

Check-in [a8ff3c50]
Login

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

Overview
Comment:Another attempt to fix the login redirect processing.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a8ff3c5092e96cc08a5f81741e6cb4c398316b6936ef37258a115b7cc1ecb4b5
User & Date: drh 2019-06-06 21:13:16
Context
2019-06-07
13:01
Add a configuration option to cause timeline timestamps to link to the /info page instead of to the /timeline page. check-in: 647424d4 user: drh tags: trunk
11:47
Output the copy button patterns for HTML pages and TH1 scripts from a centralized function, to make it easier to apply global modifications. check-in: eb960935 user: florian tags: copybtn.js-tweaks
2019-06-06
21:13
Another attempt to fix the login redirect processing. check-in: a8ff3c50 user: drh tags: trunk
19:30
Attempt to fix the "login_needed()" function so that it correctly encodes the "g=" query parameter. check-in: 8d3d39fb user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/login.c.

1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436

1437
1438
1439
1440
1441
1442
1443
    Blob redir;
    blob_init(&redir, 0, 0);
    if( fossil_wants_https(1) ){
      blob_appendf(&redir, "%s/login?g=%T", g.zHttpsURL, zUrl);
    }else{
      blob_appendf(&redir, "%R/login?g=%T", zUrl);
    }
    if( anonOk ) blob_append(&redir, "&anon", 5);
    if( zQS && zQS[0] ){
      blob_appendf(&redir, "%%3f%T", zQS);
    }

    cgi_redirect(blob_str(&redir));
    /* NOTREACHED */
    assert(0);
  }
}

/*







<



>







1426
1427
1428
1429
1430
1431
1432

1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
    Blob redir;
    blob_init(&redir, 0, 0);
    if( fossil_wants_https(1) ){
      blob_appendf(&redir, "%s/login?g=%T", g.zHttpsURL, zUrl);
    }else{
      blob_appendf(&redir, "%R/login?g=%T", zUrl);
    }

    if( zQS && zQS[0] ){
      blob_appendf(&redir, "%%3f%T", zQS);
    }
    if( anonOk ) blob_append(&redir, "&anon", 5);
    cgi_redirect(blob_str(&redir));
    /* NOTREACHED */
    assert(0);
  }
}

/*