protection against XSS when register_globals is on and .htaccess has no effect

This commit is contained in:
Marc Delisle
2008-06-21 14:01:54 +00:00
parent d75cf94f5b
commit 5da6e4cc36
72 changed files with 219 additions and 14 deletions

View File

@@ -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')) {