Fossil SCM

minor doc clarification.

stephan 2011-10-16 09:49 UTC json-multitag-test
Commit 398b53e0599281866b3ac8baf7be6b0ec70d3988
1 file changed +2 -2
+2 -2
--- src/json.c
+++ src/json.c
@@ -2238,12 +2238,12 @@
22382238
}
22392239
pUser = json_command_arg(g.json.dispatchDepth+1);
22402240
if( g.isHTTP && (!pUser || !*pUser) ){
22412241
pUser = json_getenv_cstr("name")
22422242
/* ACHTUNG: fossil apparently internally sets name=user/get/XYZ
2243
- if we pass the name as part of the path, so we check the path
2244
- _before_ checking for name=XYZ.
2243
+ if we pass the name as part of the path, which is why we check
2244
+ with json_command_path() before trying to get("name").
22452245
*/;
22462246
}
22472247
if(!pUser || !*pUser){
22482248
json_set_err(FSL_JSON_E_MISSING_ARGS,"Missing 'name' property.");
22492249
return NULL;
22502250
--- src/json.c
+++ src/json.c
@@ -2238,12 +2238,12 @@
2238 }
2239 pUser = json_command_arg(g.json.dispatchDepth+1);
2240 if( g.isHTTP && (!pUser || !*pUser) ){
2241 pUser = json_getenv_cstr("name")
2242 /* ACHTUNG: fossil apparently internally sets name=user/get/XYZ
2243 if we pass the name as part of the path, so we check the path
2244 _before_ checking for name=XYZ.
2245 */;
2246 }
2247 if(!pUser || !*pUser){
2248 json_set_err(FSL_JSON_E_MISSING_ARGS,"Missing 'name' property.");
2249 return NULL;
2250
--- src/json.c
+++ src/json.c
@@ -2238,12 +2238,12 @@
2238 }
2239 pUser = json_command_arg(g.json.dispatchDepth+1);
2240 if( g.isHTTP && (!pUser || !*pUser) ){
2241 pUser = json_getenv_cstr("name")
2242 /* ACHTUNG: fossil apparently internally sets name=user/get/XYZ
2243 if we pass the name as part of the path, which is why we check
2244 with json_command_path() before trying to get("name").
2245 */;
2246 }
2247 if(!pUser || !*pUser){
2248 json_set_err(FSL_JSON_E_MISSING_ARGS,"Missing 'name' property.");
2249 return NULL;
2250

Keyboard Shortcuts

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