Fossil SCM
Avoid duplicate "/" in the redirect from the /home webpage.
Commit
cabf810b0b45ef9c0e38162d0499c27084f34189
Parent
c6a65cbd8176ab1…
1 file changed
+1
+1
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -89,10 +89,11 @@ | ||
| 89 | 89 | if( zIndexPage ){ |
| 90 | 90 | const char *zPathInfo = P("PATH_INFO"); |
| 91 | 91 | if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0; |
| 92 | 92 | } |
| 93 | 93 | if( zIndexPage ){ |
| 94 | + while( zIndexPage[0]=='/' ) zIndexPage++; | |
| 94 | 95 | cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage); |
| 95 | 96 | } |
| 96 | 97 | if( zPageName ){ |
| 97 | 98 | login_check_credentials(); |
| 98 | 99 | g.zExtra = zPageName; |
| 99 | 100 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -89,10 +89,11 @@ | |
| 89 | if( zIndexPage ){ |
| 90 | const char *zPathInfo = P("PATH_INFO"); |
| 91 | if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0; |
| 92 | } |
| 93 | if( zIndexPage ){ |
| 94 | cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage); |
| 95 | } |
| 96 | if( zPageName ){ |
| 97 | login_check_credentials(); |
| 98 | g.zExtra = zPageName; |
| 99 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -89,10 +89,11 @@ | |
| 89 | if( zIndexPage ){ |
| 90 | const char *zPathInfo = P("PATH_INFO"); |
| 91 | if( strcmp(zIndexPage, zPathInfo)==0 ) zIndexPage = 0; |
| 92 | } |
| 93 | if( zIndexPage ){ |
| 94 | while( zIndexPage[0]=='/' ) zIndexPage++; |
| 95 | cgi_redirectf("%s/%s", g.zBaseURL, zIndexPage); |
| 96 | } |
| 97 | if( zPageName ){ |
| 98 | login_check_credentials(); |
| 99 | g.zExtra = zPageName; |
| 100 |