mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 18:47:54 +01:00
Plugin class: check for bad folder names.
This commit is contained in:
parent
b3c4d82698
commit
cd2fa2dd9b
@ -474,11 +474,13 @@ class e_plugin
|
||||
|
||||
$arr = array();
|
||||
|
||||
var_dump($dirs);
|
||||
|
||||
foreach($dirs as $plugName)
|
||||
{
|
||||
$ret = null;
|
||||
|
||||
if(empty($plugName) || $plugName === '.' || $plugName === '..' || !is_dir(e_PLUGIN.$plugName))
|
||||
if((htmlentities($plugName) != $plugName) || empty($plugName) || $plugName === '.' || $plugName === '..' || !is_dir(e_PLUGIN.$plugName))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user