mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02: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:
@@ -51,6 +51,11 @@ class secure_image
|
|||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
// FIX - new prefered configuration format - $E107_CONFIG
|
||||||
|
if(isset($E107_CONFIG))
|
||||||
|
{
|
||||||
|
extract($E107_CONFIG);
|
||||||
|
}
|
||||||
|
|
||||||
$this->THIS_DIR = $imgp;
|
$this->THIS_DIR = $imgp;
|
||||||
$this->BASE_DIR = realpath($imgp.'..'.DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
|
$this->BASE_DIR = realpath($imgp.'..'.DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
|
||||||
|
Reference in New Issue
Block a user