Fossil

Check-in [cabf810b0b]
Login

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

Overview
Comment:Avoid duplicate "/" in the redirect from the /home webpage.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: cabf810b0b45ef9c0e38162d0499c27084f34189
User & Date: drh 2010-09-29 16:58:40.000
References
2010-10-03
07:23 New ticket [6e5d9dd8ec] HTML tags show on tickets when running "fossil timeline" on CLI. ... (artifact: cb5e3b704b user: anonymous)
Context
2010-10-01
15:39
added thead, tfoot, tbody, col, colgroup and span to allowed html. So that pages generated by docbook and elyxer are accepted ... (check-in: 172dccb66f user: renez tags: trunk)
2010-09-29
22:17
merged from trunk ... (check-in: a5f0579454 user: wolfgang tags: wolfgangFormat2CSS_2)
16:58
Avoid duplicate "/" in the redirect from the /home webpage. ... (check-in: cabf810b0b user: drh tags: trunk)
15:49
Print a warning and require confirmation prior to continuing with a commit after detection of time skew. ... (check-in: c6a65cbd81 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/wiki.c.
87
88
89
90
91
92
93

94
95
96
97
98
99
100
    cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
  }
  if( zIndexPage ){
    const char *zPathInfo = P("PATH_INFO");
    if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0;
  }
  if( zIndexPage ){

    cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage);
  }
  if( zPageName ){
    login_check_credentials();
    g.zExtra = zPageName;
    cgi_set_parameter_nocopy("name", g.zExtra);
    g.isHome = 1;







>







87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
    cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
  }
  if( zIndexPage ){
    const char *zPathInfo = P("PATH_INFO");
    if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0;
  }
  if( zIndexPage ){
    while( zIndexPage[0]=='/' ) zIndexPage++;
    cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage);
  }
  if( zPageName ){
    login_check_credentials();
    g.zExtra = zPageName;
    cgi_set_parameter_nocopy("name", g.zExtra);
    g.isHome = 1;