[security] Avoid full path disclosure from libraries/common.inc.php, see PMASA-2013-12

This commit is contained in:
Marc Delisle 2013-07-12 08:50:25 -04:00
parent 45d3f4326c
commit 8e4fe7c57a

View File

@ -51,6 +51,13 @@ if (!defined('E_DEPRECATED')) {
*/
define('PHPMYADMIN', true);
/**
* block attempts to directly run this script
*/
if (getcwd() == dirname(__FILE__)) {
die('Attack stopped');
}
/**
* the error handler
*/