Avoid information disclossure on error.
This commit is contained in:
10
error.php
10
error.php
@@ -73,10 +73,14 @@ header('Content-Type: text/html; charset=' . $charset);
|
||||
<body>
|
||||
<h1>phpMyAdmin - <?php echo $type; ?></h1>
|
||||
<p><?php
|
||||
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
|
||||
echo PMA_sanitize(stripslashes($_REQUEST['error']));
|
||||
if (!empty($_REQUEST['error'])) {
|
||||
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
|
||||
echo PMA_sanitize(stripslashes($_REQUEST['error']));
|
||||
} else {
|
||||
echo PMA_sanitize($_REQUEST['error']);
|
||||
}
|
||||
} else {
|
||||
echo PMA_sanitize($_REQUEST['error']);
|
||||
echo 'No error message!';
|
||||
}
|
||||
?></p>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user