Merge branch 'security/pollskin' into develop

This commit is contained in:
Kijin Sung 2022-07-04 00:46:36 +09:00
commit 6e3c9a7c0e
6 changed files with 42 additions and 22 deletions

View file

@ -93,6 +93,7 @@ class TemplateHandler
{
// verify arguments
$tpl_path = trim(preg_replace('@^' . preg_quote(\RX_BASEDIR, '@') . '|\./@', '', str_replace('\\', '/', $tpl_path)), '/') . '/';
$tpl_path = preg_replace('/[\{\}\(\)\[\]<>\$\'"]/', '', $tpl_path);
if($tpl_path === '/')
{
$tpl_path = '';