bug 455088
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2001-08-25 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lib.inc.php3, bug 455088, avoid to reveal username/password
|
||||
from config file when they are wrong or MySQL server does not answer
|
||||
|
||||
2001-08-23 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lib.inc.php3, bug 454477, added LIMIT 1 to delete only one instance
|
||||
when records are the same
|
||||
|
@@ -150,6 +150,11 @@ if (!defined('__LIB_INC__')){
|
||||
$query_base = htmlspecialchars($the_query);
|
||||
$query_base = ereg_replace("((\015\012)|(\015)|(\012)){3,}", "\n\n", $query_base);
|
||||
echo '<p>' . "\n";
|
||||
|
||||
// if the config password is wrong, or the MySQL server does not respond,
|
||||
// do not show the query that would reveal the username/password
|
||||
|
||||
if (!strstr($query_base,"connect")) {
|
||||
echo ' ' . $GLOBALS['strSQLQuery'] . ' : ' . "\n";
|
||||
if ($is_modify_link) {
|
||||
echo ' ['
|
||||
@@ -159,6 +164,7 @@ if (!defined('__LIB_INC__')){
|
||||
echo '<pre>' . "\n" . $query_base . "\n" . '</pre>' . "\n";
|
||||
echo '</p>' . "\n";
|
||||
}
|
||||
}
|
||||
if (!empty($error_message)) {
|
||||
$error_message = htmlspecialchars($error_message);
|
||||
$error_message = ereg_replace("((\015\012)|(\015)|(\012)){3,}", "\n\n", $error_message);
|
||||
|
Reference in New Issue
Block a user