Fossil SCM
Fix the fossil_fatal() routine so that it avoids trying to do a webpage display if the repository database has not yet been opened.
Commit
0336ac7715e721c3d05be1a08907a775db4d4077d441913459af3a3f72cce5b9
Parent
fe5e9de1cd53da5…
1 file changed
+1
-1
+1
-1
| --- src/printf.c | ||
| +++ src/printf.c | ||
| @@ -1088,11 +1088,11 @@ | ||
| 1088 | 1088 | } |
| 1089 | 1089 | } |
| 1090 | 1090 | else |
| 1091 | 1091 | #endif |
| 1092 | 1092 | { |
| 1093 | - if( g.cgiOutput==1 ){ | |
| 1093 | + if( g.cgiOutput==1 && g.db ){ | |
| 1094 | 1094 | g.cgiOutput = 2; |
| 1095 | 1095 | cgi_reset_content(); |
| 1096 | 1096 | style_header("Bad Request"); |
| 1097 | 1097 | @ <p class="generalError">%h(z)</p> |
| 1098 | 1098 | cgi_set_status(400, "Bad Request"); |
| 1099 | 1099 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -1088,11 +1088,11 @@ | |
| 1088 | } |
| 1089 | } |
| 1090 | else |
| 1091 | #endif |
| 1092 | { |
| 1093 | if( g.cgiOutput==1 ){ |
| 1094 | g.cgiOutput = 2; |
| 1095 | cgi_reset_content(); |
| 1096 | style_header("Bad Request"); |
| 1097 | @ <p class="generalError">%h(z)</p> |
| 1098 | cgi_set_status(400, "Bad Request"); |
| 1099 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -1088,11 +1088,11 @@ | |
| 1088 | } |
| 1089 | } |
| 1090 | else |
| 1091 | #endif |
| 1092 | { |
| 1093 | if( g.cgiOutput==1 && g.db ){ |
| 1094 | g.cgiOutput = 2; |
| 1095 | cgi_reset_content(); |
| 1096 | style_header("Bad Request"); |
| 1097 | @ <p class="generalError">%h(z)</p> |
| 1098 | cgi_set_status(400, "Bad Request"); |
| 1099 |