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:
parent
9d87478586
commit
e91609e301
4 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue