According to the CGI spec, the PATH_TRANSLATED env var was a path to a file on the filesystem. We could use PATH_TRANSLATED to hold the path info with the prefix chopped off. E.g. if the route matches is /foo/... and the PATH_INFO is /foo/bar/baz, then the PATH_TRANSLATED would be /bar/baz.
Since this is a frequently needed transformation, it is probably a good idea to do it.
If we are worried about overloading a CGI term, we could use something like X_SUBPATH or something
According to the CGI spec, the PATH_TRANSLATED env var was a path to a file on the filesystem. We could use PATH_TRANSLATED to hold the path info with the prefix chopped off. E.g. if the route matches is
/foo/...
and the PATH_INFO is/foo/bar/baz
, then the PATH_TRANSLATED would be/bar/baz
.Since this is a frequently needed transformation, it is probably a good idea to do it.
If we are worried about overloading a CGI term, we could use something like
X_SUBPATH
or something