protection against XSS when register_globals is on and .htaccess has no effect
This commit is contained in:
@@ -52,6 +52,11 @@ if (version_compare(phpversion(), '6', 'lt')) {
|
||||
@ini_set('magic_quotes_runtime', false);
|
||||
}
|
||||
|
||||
/**
|
||||
* for verification in all procedural scripts under libraries
|
||||
*/
|
||||
define('PHPMYADMIN', true);
|
||||
|
||||
/**
|
||||
* core functions
|
||||
*/
|
||||
@@ -730,9 +735,6 @@ if (! defined('PMA_MINIMUM_COMMON')) {
|
||||
// Gets the authentication library that fits the $cfg['Server'] settings
|
||||
// and run authentication
|
||||
|
||||
// (for a quick check of path disclosure in auth/cookies:)
|
||||
$coming_from_common = true;
|
||||
|
||||
// to allow HTTP or http
|
||||
$cfg['Server']['auth_type'] = strtolower($cfg['Server']['auth_type']);
|
||||
if (! file_exists('./libraries/auth/' . $cfg['Server']['auth_type'] . '.auth.lib.php')) {
|
||||
|
Reference in New Issue
Block a user