[security] Avoid full path disclosure from libraries/common.inc.php, see PMASA-2013-12
This commit is contained in:
parent
45d3f4326c
commit
8e4fe7c57a
@ -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
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user