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.

drh 2018-06-30 10:39 trunk
Commit 0336ac7715e721c3d05be1a08907a775db4d4077d441913459af3a3f72cce5b9
1 file changed +1 -1
+1 -1
--- src/printf.c
+++ src/printf.c
@@ -1088,11 +1088,11 @@
10881088
}
10891089
}
10901090
else
10911091
#endif
10921092
{
1093
- if( g.cgiOutput==1 ){
1093
+ if( g.cgiOutput==1 && g.db ){
10941094
g.cgiOutput = 2;
10951095
cgi_reset_content();
10961096
style_header("Bad Request");
10971097
@ <p class="generalError">%h(z)</p>
10981098
cgi_set_status(400, "Bad Request");
10991099
--- 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

Keyboard Shortcuts

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