mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-23 02:35:23 +00:00
prevent use of paths in template names, only file names inside tpl directory are allowed
This commit is contained in:
parent
13949349af
commit
17ff44037a
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class View
|
|||
*/
|
||||
public static function getTemplateFilePath(string $template): string
|
||||
{
|
||||
$file = self::isBootstrapTemplate($template) ? 'bootstrap' : $template;
|
||||
$file = self::isBootstrapTemplate($template) ? 'bootstrap' : basename($template);
|
||||
return PATH . 'tpl' . DIRECTORY_SEPARATOR . $file . '.php';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue