Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Make sure fossil_panic() text is given a proper header in CGI mode. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
dbfe682b925d167012c928a943e5471f |
| User & Date: | drh 2008-05-22 12:49:31.000 |
Context
|
2008-05-22
| ||
| 13:58 | Begin adding the new "configure" command. check-in: e06ae9f6d2 user: drh tags: trunk | |
| 12:49 | Make sure fossil_panic() text is given a proper header in CGI mode. check-in: dbfe682b92 user: drh tags: trunk | |
| 12:38 | Fix a segfault on the "fossil cgi" command. check-in: b4f9d90ca3 user: drh tags: trunk | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
234 235 236 237 238 239 240 241 242 243 |
/*
** Print an error message, rollback all databases, and quit.
*/
void fossil_panic(const char *zFormat, ...){
char *z;
va_list ap;
va_start(ap, zFormat);
z = vmprintf(zFormat, ap);
va_end(ap);
| > | | | 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
/*
** Print an error message, rollback all databases, and quit.
*/
void fossil_panic(const char *zFormat, ...){
char *z;
va_list ap;
static int once = 1;
va_start(ap, zFormat);
z = vmprintf(zFormat, ap);
va_end(ap);
if( g.cgiPanic && once ){
once = 0;
cgi_printf("<p><font color=\"red\">%h</font></p>", z);
style_footer();
cgi_reply();
}else{
fprintf(stderr, "%s: %s\n", g.argv[0], z);
}
db_force_rollback();
|
| ︙ | ︙ |