Fossil SCM
minor doc clarification.
Commit
398b53e0599281866b3ac8baf7be6b0ec70d3988
Parent
ea5e58155d745a8…
1 file changed
+2
-2
+2
-2
| --- src/json.c | ||
| +++ src/json.c | ||
| @@ -2238,12 +2238,12 @@ | ||
| 2238 | 2238 | } |
| 2239 | 2239 | pUser = json_command_arg(g.json.dispatchDepth+1); |
| 2240 | 2240 | if( g.isHTTP && (!pUser || !*pUser) ){ |
| 2241 | 2241 | pUser = json_getenv_cstr("name") |
| 2242 | 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. | |
| 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 | 2245 | */; |
| 2246 | 2246 | } |
| 2247 | 2247 | if(!pUser || !*pUser){ |
| 2248 | 2248 | json_set_err(FSL_JSON_E_MISSING_ARGS,"Missing 'name' property."); |
| 2249 | 2249 | return NULL; |
| 2250 | 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, 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 |