[Templates] Restricting access when RELATIVE is on

Mihai Bazon mihai@bazon.net
Sat, 13 Jan 2007 13:28:06 +0200


Hi folks,

I'd like to use the RELATIVE option since it makes it easier to specify 
template names in code, but is it possible to restrict access to a 
certain directory?

I.e., all templates are in /opt/foo/templates(/...) and I don't want to 
allow someone to say PROCESS '../../../etc/passwd' or something like 
this.  Basically TT should be jailed in /opt/foo/templates.

Hints?

Thanks,
-M.