mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
RVE-2022-3 filter skin parameter in ModuleModel::loadSkinInfo()
This commit is contained in:
parent
693fb9e041
commit
bc562b74ba
1 changed files with 9 additions and 1 deletions
|
|
@ -957,8 +957,16 @@ class moduleModel extends module
|
|||
{
|
||||
// Read xml file having skin information
|
||||
if(substr($path,-1)!='/') $path .= '/';
|
||||
if(!preg_match('/^[a-zA-Z0-9_-]+$/', $skin))
|
||||
{
|
||||
return;
|
||||
}
|
||||
$skin_xml_file = sprintf("%s%s/%s/skin.xml", $path, $dir, $skin);
|
||||
if(!file_exists($skin_xml_file)) return;
|
||||
if(!file_exists($skin_xml_file))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Create XmlParser object
|
||||
$oXmlParser = new XeXmlParser();
|
||||
$_xml_obj = $oXmlParser->loadXmlFile($skin_xml_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue