Fossil SCM

Disable the backoffice for SSH clients.

drh 2018-08-07 13:52 forum-v2
Commit 4b4e133a8c4497d1eaf65a4e36f9391b60286629b7941162735a82bbd4fdba09
1 file changed +1 -1
+1 -1
--- src/cgi.c
+++ src/cgi.c
@@ -344,11 +344,11 @@
344344
345345
/* After the webpage has been sent, do any useful background
346346
** processing.
347347
*/
348348
g.cgiOutput = 2;
349
- if( g.db!=0 && iReplyStatus==200 ){
349
+ if( g.db!=0 && iReplyStatus==200 && !g.fSshClient ){
350350
fclose(g.httpOut);
351351
#ifdef _WIN32
352352
g.httpOut = fossil_fopen("NUL", "wb");
353353
#else
354354
g.httpOut = fossil_fopen("/dev/null", "wb");
355355
--- src/cgi.c
+++ src/cgi.c
@@ -344,11 +344,11 @@
344
345 /* After the webpage has been sent, do any useful background
346 ** processing.
347 */
348 g.cgiOutput = 2;
349 if( g.db!=0 && iReplyStatus==200 ){
350 fclose(g.httpOut);
351 #ifdef _WIN32
352 g.httpOut = fossil_fopen("NUL", "wb");
353 #else
354 g.httpOut = fossil_fopen("/dev/null", "wb");
355
--- src/cgi.c
+++ src/cgi.c
@@ -344,11 +344,11 @@
344
345 /* After the webpage has been sent, do any useful background
346 ** processing.
347 */
348 g.cgiOutput = 2;
349 if( g.db!=0 && iReplyStatus==200 && !g.fSshClient ){
350 fclose(g.httpOut);
351 #ifdef _WIN32
352 g.httpOut = fossil_fopen("NUL", "wb");
353 #else
354 g.httpOut = fossil_fopen("/dev/null", "wb");
355

Keyboard Shortcuts

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