mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Check for valid $template_path in includes/template.php - Bug #50055
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10036 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -94,6 +94,12 @@ class template
|
||||
{
|
||||
global $phpbb_root_path, $user;
|
||||
|
||||
// Make sure $template_path has no ending slash
|
||||
if (substr($template_path, -1) == '/')
|
||||
{
|
||||
$template_path = substr($template_path, 0, -1);
|
||||
}
|
||||
|
||||
$this->root = $template_path;
|
||||
$this->cachepath = $phpbb_root_path . 'cache/ctpl_' . str_replace('_', '-', $template_name) . '_';
|
||||
$user->theme['template_storedb'] = false;
|
||||
|
Reference in New Issue
Block a user