[security] Avoid full path disclosure from some libraries script, see

PMASA-2013-12

Move the PHPMYADMIN constant definition earlier
This commit is contained in:
Marc Delisle 2013-07-11 13:52:07 -04:00
parent e0d8568ac6
commit 0fea53b7b8
3 changed files with 13 additions and 5 deletions

View File

@ -6,6 +6,10 @@
* @package PhpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
exit;
}
/**
* base class
*/

View File

@ -6,6 +6,10 @@
* @package PhpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
exit;
}
/**
*
*/

View File

@ -46,6 +46,11 @@ if (!defined('E_DEPRECATED')) {
define('E_DEPRECATED', 8192);
}
/**
* for verification in all procedural scripts under libraries
*/
define('PHPMYADMIN', true);
/**
* the error handler
*/
@ -79,11 +84,6 @@ if (version_compare(phpversion(), '5.4', 'lt')) {
@ini_set('magic_quotes_runtime', false);
}
/**
* for verification in all procedural scripts under libraries
*/
define('PHPMYADMIN', true);
/**
* core functions
*/