Fossil

Check-in [0a523be3]
Login

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

Overview
Comment:Another attempt to get the /home to /login redirection correct.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0a523be389f9efe9b281b1c3dca2340455777bcc
User & Date: drh 2008-11-20 23:19:41
Context
2008-11-21
22:16
Fix to the pathname simplifer logic. check-in: d31c0f9c user: drh tags: trunk
2008-11-20
23:19
Another attempt to get the /home to /login redirection correct. check-in: 0a523be3 user: drh tags: trunk
23:17
Try again to get the redirection correct when redirecting from /home to /login. check-in: 3420e47b user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/wiki.c.

78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
** WEBPAGE: index
** WEBPAGE: not_found
*/
void home_page(void){
  char *zPageName = db_get("project-name",0);
  login_check_credentials();
  if( !g.okRdWiki ){
    cgi_redirectf("%s/login?g=/home", g.zBaseURL);
  }
  if( zPageName ){
    login_check_credentials();
    g.zExtra = zPageName;
    cgi_set_parameter_nocopy("name", g.zExtra);
    g.argv[1] = "home";
    wiki_page();







|







78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
** WEBPAGE: index
** WEBPAGE: not_found
*/
void home_page(void){
  char *zPageName = db_get("project-name",0);
  login_check_credentials();
  if( !g.okRdWiki ){
    cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
  }
  if( zPageName ){
    login_check_credentials();
    g.zExtra = zPageName;
    cgi_set_parameter_nocopy("name", g.zExtra);
    g.argv[1] = "home";
    wiki_page();