Fossil SCM

Another fix.

mistachkin 2020-06-12 21:53 jsonTestsPass
Commit 6804c033eb06958cae46d0104bef02ef6dd61b64bf7868f59e05581f6a72d6b7
1 file changed +3 -1
+3 -1
--- src/main.c
+++ src/main.c
@@ -1916,12 +1916,14 @@
19161916
@ <p>The database schema on the server is out-of-date. Please ask
19171917
@ the administrator to run <b>fossil rebuild</b>.</p>
19181918
}
19191919
}else{
19201920
#ifdef FOSSIL_ENABLE_JSON
1921
- if( g.json.isJsonMode ){
1921
+ static int jsonOnce = 0;
1922
+ if( !jsonOnce && g.json.isJsonMode ){
19221923
json_mode_bootstrap();
1924
+ jsonOnce = 1;
19231925
}
19241926
#endif
19251927
if( (pCmd->eCmdFlags & CMDFLAG_RAWCONTENT)==0 ){
19261928
cgi_decode_post_parameters();
19271929
}
19281930
--- src/main.c
+++ src/main.c
@@ -1916,12 +1916,14 @@
1916 @ <p>The database schema on the server is out-of-date. Please ask
1917 @ the administrator to run <b>fossil rebuild</b>.</p>
1918 }
1919 }else{
1920 #ifdef FOSSIL_ENABLE_JSON
1921 if( g.json.isJsonMode ){
 
1922 json_mode_bootstrap();
 
1923 }
1924 #endif
1925 if( (pCmd->eCmdFlags & CMDFLAG_RAWCONTENT)==0 ){
1926 cgi_decode_post_parameters();
1927 }
1928
--- src/main.c
+++ src/main.c
@@ -1916,12 +1916,14 @@
1916 @ <p>The database schema on the server is out-of-date. Please ask
1917 @ the administrator to run <b>fossil rebuild</b>.</p>
1918 }
1919 }else{
1920 #ifdef FOSSIL_ENABLE_JSON
1921 static int jsonOnce = 0;
1922 if( !jsonOnce && g.json.isJsonMode ){
1923 json_mode_bootstrap();
1924 jsonOnce = 1;
1925 }
1926 #endif
1927 if( (pCmd->eCmdFlags & CMDFLAG_RAWCONTENT)==0 ){
1928 cgi_decode_post_parameters();
1929 }
1930

Keyboard Shortcuts

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