Differences From:
File
src/wiki.c
part of check-in
[19f5d0b15f]
- Require wiki read permission in order to visit the /home URL.
by
drh on
2008-11-20 23:15:30.
[view]
To:
File
src/wiki.c
part of check-in
[3420e47b24]
- Try again to get the redirection correct when redirecting from /home to
/login.
by
drh on
2008-11-20 23:17:50.
[view]
@@ -81,9 +81,9 @@
void home_page(void){
char *zPageName = db_get("project-name",0);
login_check_credentials();
if( !g.okRdWiki ){
- cgi_redirect("/login?g=/home");
+ cgi_redirectf("%s/login?g=/home", g.zBaseURL);
}
if( zPageName ){
login_check_credentials();
g.zExtra = zPageName;