mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Secure image paths detection fix (e107_config.php values) - failed to
track the new configuration way ($E107_CONFIG array)
This commit is contained in:
parent
dc2511c9c6
commit
5873a80978
@ -51,6 +51,11 @@ class secure_image
|
||||
}
|
||||
exit;
|
||||
}
|
||||
// FIX - new prefered configuration format - $E107_CONFIG
|
||||
if(isset($E107_CONFIG))
|
||||
{
|
||||
extract($E107_CONFIG);
|
||||
}
|
||||
|
||||
$this->THIS_DIR = $imgp;
|
||||
$this->BASE_DIR = realpath($imgp.'..'.DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user