Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 5ea759f9fe8e650f85000365dae5129fb30799a4 |
|---|---|
| Date: | 2012-07-03 21:28:44 |
| User: | stephan |
| Comment: | Minor improvement to the "are we in JSON mode so we can disable the name parameter hack?" pre-check. |
Tags And Properties
- branch=trunk inherited from [bf1c21ba16]
- sym-trunk inherited from [bf1c21ba16]
Changes
Changes to src/main.c
1334 #ifdef FOSSIL_ENABLE_JSON 1334 #ifdef FOSSIL_ENABLE_JSON 1335 /* 1335 /* 1336 ** Workaround to allow us to customize some following behaviour for 1336 ** Workaround to allow us to customize some following behaviour for 1337 ** JSON mode. The problem is, we don't always know if we're in JSON 1337 ** JSON mode. The problem is, we don't always know if we're in JSON 1338 ** mode at this point (namely, for GET mode we don't know but POST 1338 ** mode at this point (namely, for GET mode we don't know but POST 1339 ** we do), so we snoop g.zPath and cheat a bit. 1339 ** we do), so we snoop g.zPath and cheat a bit. 1340 */ 1340 */ 1341 if( g.zPath && (0==strcmp("json",g.zPath)) ){ | 1341 if( !g.json.isJsonMode && g.zPath && (0==strncmp("json",g.zPath,4)) ){ 1342 g.json.isJsonMode = 1; 1342 g.json.isJsonMode = 1; 1343 } 1343 } 1344 #endif 1344 #endif 1345 if( g.zExtra ){ 1345 if( g.zExtra ){ 1346 /* CGI parameters get this treatment elsewhere, but places like getfile 1346 /* CGI parameters get this treatment elsewhere, but places like getfile 1347 ** will use g.zExtra directly. 1347 ** will use g.zExtra directly. 1348 ** Reminder: the login mechanism uses 'name' differently, and may 1348 ** Reminder: the login mechanism uses 'name' differently, and may