Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Minor improvement to the "are we in JSON mode so we can disable the name parameter hack?" pre-check. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
5ea759f9fe8e650f85000365dae5129f |
User & Date: | stephan 2012-07-03 21:28:44.694 |
Context
2012-07-03
| ||
21:30 | minor cleanups made possible by newer cson APIs. ... (check-in: 9be377fe user: stephan tags: trunk) | |
21:28 | Minor improvement to the "are we in JSON mode so we can disable the name parameter hack?" pre-check. ... (check-in: 5ea759f9 user: stephan tags: trunk) | |
21:10 | Minor optimization in stash_create to bypass an unneeded blob_compare() when (isLink!=isNewLink). ... (check-in: 75461b99 user: stephan tags: trunk) | |
Changes
Changes to src/main.c.
︙ | ︙ | |||
1334 1335 1336 1337 1338 1339 1340 | #ifdef FOSSIL_ENABLE_JSON /* ** Workaround to allow us to customize some following behaviour for ** JSON mode. The problem is, we don't always know if we're in JSON ** mode at this point (namely, for GET mode we don't know but POST ** we do), so we snoop g.zPath and cheat a bit. */ | | | 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 | #ifdef FOSSIL_ENABLE_JSON /* ** Workaround to allow us to customize some following behaviour for ** JSON mode. The problem is, we don't always know if we're in JSON ** mode at this point (namely, for GET mode we don't know but POST ** we do), so we snoop g.zPath and cheat a bit. */ if( !g.json.isJsonMode && g.zPath && (0==strncmp("json",g.zPath,4)) ){ g.json.isJsonMode = 1; } #endif if( g.zExtra ){ /* CGI parameters get this treatment elsewhere, but places like getfile ** will use g.zExtra directly. ** Reminder: the login mechanism uses 'name' differently, and may |
︙ | ︙ |