docs: document runtime cache request param
This commit is contained in:
parent
c0f3c5507c
commit
4a6fc46ec8
@ -2,7 +2,7 @@
|
||||
Request Context Params
|
||||
|
||||
:sig
|
||||
SCRIPT_URL, BASE_URL, ROUTE_PATH, ROUTE_PAGE, ROUTE_PATH_RAW, ROUTE_VALID
|
||||
SCRIPT_URL, BASE_URL, ROUTE_PATH, ROUTE_PAGE, ROUTE_PATH_RAW, ROUTE_VALID, UCE_BIN_DIRECTORY
|
||||
|
||||
:see
|
||||
>uri
|
||||
@ -23,6 +23,7 @@ UCE populates several convenience request parameters before invoking page, compo
|
||||
- `context.params["ROUTE_PAGE"]`: first segment of `ROUTE_PATH`
|
||||
- `context.params["ROUTE_PATH_RAW"]`: normalized but not trusted route input, for diagnostics only
|
||||
- `context.params["ROUTE_VALID"]`: `1` when the supplied/defaulted route is safe, `0` when the supplied route was rejected
|
||||
- `context.params["UCE_BIN_DIRECTORY"]`: writable runtime cache directory from `BIN_DIRECTORY`, useful for generated helper units or other request-local artifacts that must not be written into the source tree
|
||||
|
||||
`ROUTE_PATH` is safe to compose under an application-controlled route root. Unsafe route input such as `..`, `.`, empty interior segments, backslashes, dots in filenames, or other non route-segment characters is rejected by the runtime and yields an empty `ROUTE_PATH` with `ROUTE_VALID=0`.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user