EL
Size: a a a
EL
EL
$dir_with_templates = realpath(__DIR__ . '/../../include/templates/');
$template_path = $dir_with_templates . '/' . $template . '.hbs';
if (mb_strpos(realpath($template_path), realpath($dir_with_templates) . '/') !== 0 or !file_exists($template_path) or empty(file_get_contents($template_path))) { http_response_code(404); exit(); }
AK
$dir_with_templates = realpath(__DIR__ . '/../../include/templates/');
$template_path = $dir_with_templates . '/' . $template . '.hbs';
if (mb_strpos(realpath($template_path), realpath($dir_with_templates) . '/') !== 0 or !file_exists($template_path) or empty(file_get_contents($template_path))) { http_response_code(404); exit(); }
AK
EL
EL
AK
AK
SM
EL
EL
EL
EL
AK
AK
AK
SM
AK
SM