1
0
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:
SecretR 2013-06-14 11:26:59 +03:00
parent dc2511c9c6
commit 5873a80978

View File

@ -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;