mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
merge r13959 from branch 2.3 to trunk
bug 2613 fixed: on the theme configuration screen, make sure the $_GET['theme'] is a theme id already installed. git-svn-id: http://piwigo.org/svn/trunk@13960 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -34,6 +34,13 @@ if (empty($_GET['theme']))
|
||||
die('Invalid theme URL');
|
||||
}
|
||||
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php');
|
||||
$themes = new themes();
|
||||
if (!in_array($_GET['theme'], array_keys($themes->fs_themes)))
|
||||
{
|
||||
die('Invalid theme');
|
||||
}
|
||||
|
||||
$filename = PHPWG_THEMES_PATH.$_GET['theme'].'/admin/admin.inc.php';
|
||||
if (is_file($filename))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user