Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix a possible redirect loop. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | f4033ec09ee6bb2a73fa588c217527a1 |
User & Date: | drh 2010-11-01 23:38:34 |
Context
2010-11-01
| ||
23:45 | Mention the -N and --new-file command-line options on the "diff" command. Ticket [926a1b1639a1ee3739]. check-in: bd68e417 user: drh tags: trunk | |
23:38 | Fix a possible redirect loop. check-in: f4033ec0 user: drh tags: trunk | |
14:23 | Fix a typo in the file format documentation reported on the Tcl/Tk chatroom. check-in: d0753799 user: drh tags: trunk, release | |
Changes
Changes to src/wiki.c.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
char *zIndexPage = db_get("index-page",0);
login_check_credentials();
if( !g.okRdWiki ){
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;
|
> < |
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
char *zIndexPage = db_get("index-page",0);
login_check_credentials();
if( !g.okRdWiki ){
cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
}
if( zIndexPage ){
const char *zPathInfo = P("PATH_INFO");
while( zIndexPage[0]=='/' ) zIndexPage++;
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;
|