Fossil SCM

Make sure set_base_url() is called prior to redirecting when a page is not found.

drh 2012-03-05 19:24 trunk
Commit 78a48858ef690c0765d8da7609c9cc433f6147e5
1 file changed +1
+1
--- src/main.c
+++ src/main.c
@@ -1201,10 +1201,11 @@
12011201
}
12021202
zRepo[j] = '.';
12031203
}
12041204
12051205
if( szFile<1024 ){
1206
+ set_base_url();
12061207
if( zNotFound ){
12071208
cgi_redirect(zNotFound);
12081209
}else{
12091210
#ifdef FOSSIL_ENABLE_JSON
12101211
if(g.json.isJsonMode){
12111212
--- src/main.c
+++ src/main.c
@@ -1201,10 +1201,11 @@
1201 }
1202 zRepo[j] = '.';
1203 }
1204
1205 if( szFile<1024 ){
 
1206 if( zNotFound ){
1207 cgi_redirect(zNotFound);
1208 }else{
1209 #ifdef FOSSIL_ENABLE_JSON
1210 if(g.json.isJsonMode){
1211
--- src/main.c
+++ src/main.c
@@ -1201,10 +1201,11 @@
1201 }
1202 zRepo[j] = '.';
1203 }
1204
1205 if( szFile<1024 ){
1206 set_base_url();
1207 if( zNotFound ){
1208 cgi_redirect(zNotFound);
1209 }else{
1210 #ifdef FOSSIL_ENABLE_JSON
1211 if(g.json.isJsonMode){
1212

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button