Fossil SCM
Another fix.
Commit
6804c033eb06958cae46d0104bef02ef6dd61b64bf7868f59e05581f6a72d6b7
Parent
e3297200e569702…
1 file changed
+3
-1
+3
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1916,12 +1916,14 @@ | ||
| 1916 | 1916 | @ <p>The database schema on the server is out-of-date. Please ask |
| 1917 | 1917 | @ the administrator to run <b>fossil rebuild</b>.</p> |
| 1918 | 1918 | } |
| 1919 | 1919 | }else{ |
| 1920 | 1920 | #ifdef FOSSIL_ENABLE_JSON |
| 1921 | - if( g.json.isJsonMode ){ | |
| 1921 | + static int jsonOnce = 0; | |
| 1922 | + if( !jsonOnce && g.json.isJsonMode ){ | |
| 1922 | 1923 | json_mode_bootstrap(); |
| 1924 | + jsonOnce = 1; | |
| 1923 | 1925 | } |
| 1924 | 1926 | #endif |
| 1925 | 1927 | if( (pCmd->eCmdFlags & CMDFLAG_RAWCONTENT)==0 ){ |
| 1926 | 1928 | cgi_decode_post_parameters(); |
| 1927 | 1929 | } |
| 1928 | 1930 |
| --- 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 |