Move shared .tpl files to tpl/ from lib/, this fixes a DoS vulneravility where master_template.tpl could be accessed as a standalone .tpl file that recursively called itself.

This commit is contained in:
uriel 2009-06-06 16:20:02 +02:00
parent 8f1a306a8a
commit 5e2170a691
4 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ fn setup_handlers {
if not if(test -f $local_path.html)
handler_body_main=(html_handler $local_path.html)
# Global tpl (eg sitemap.tpl), should take precedence over txt handler!
if not if(test -f lib^$req_path^.tpl)
if not if(test -f tpl^$req_path^.tpl)
handler_body_main=(tpl_handler lib^$req_path^.tpl)
if not if(test -f $local_path.txt)
handler_body_main=(txt_handler $local_path.txt)