Fossil SCM
Make sure set_base_url() is called prior to redirecting when a page is not found.
Commit
78a48858ef690c0765d8da7609c9cc433f6147e5
Parent
1578ba34410b13e…
1 file changed
+1
+1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1201,10 +1201,11 @@ | ||
| 1201 | 1201 | } |
| 1202 | 1202 | zRepo[j] = '.'; |
| 1203 | 1203 | } |
| 1204 | 1204 | |
| 1205 | 1205 | if( szFile<1024 ){ |
| 1206 | + set_base_url(); | |
| 1206 | 1207 | if( zNotFound ){ |
| 1207 | 1208 | cgi_redirect(zNotFound); |
| 1208 | 1209 | }else{ |
| 1209 | 1210 | #ifdef FOSSIL_ENABLE_JSON |
| 1210 | 1211 | if(g.json.isJsonMode){ |
| 1211 | 1212 |
| --- 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 |