PMCORE-3669 Sensitive Information Disclosure SEC-32

This commit is contained in:
Roly Gutierrez
2022-04-26 10:17:09 -04:00
parent c8fad8204f
commit 5fdd4c6b7b

View File

@@ -810,7 +810,7 @@ class Bootstrap
//First get Skin info //First get Skin info
$filenameParts = explode("-", $filename); $filenameParts = explode("-", $filename);
$skinName = $filenameParts[0]; $skinName = empty($filenameParts[0]) ? 'base' : $filenameParts[0];
$skinVariant = "skin"; $skinVariant = "skin";
if (isset($filenameParts[1])) { if (isset($filenameParts[1])) {
@@ -837,6 +837,9 @@ class Bootstrap
$configurationFile = Bootstrap::ExpandPath("skinEngine") . $skinName . PATH_SEP . 'config.xml'; $configurationFile = Bootstrap::ExpandPath("skinEngine") . $skinName . PATH_SEP . 'config.xml';
} }
} }
if (!file_exists($configurationFile)) {
$configurationFile = Bootstrap::ExpandPath("skinEngine") . 'base' . PATH_SEP . 'config.xml';
}
$mtime = date('U'); $mtime = date('U');
$gmt_mtime = gmdate("D, d M Y H:i:s", $mtime) . " GMT"; $gmt_mtime = gmdate("D, d M Y H:i:s", $mtime) . " GMT";