From c7c2ff4ab637bd5d5add20014fcd0edbd99ed37e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 1 Dec 2015 08:51:11 +0100 Subject: [PATCH] issue #11708 Remove no password warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The empty password has to be enabled by AllowNoPassword, so user should know what he is doing. Showing this warning every time doesn't bring any additional security. Signed-off-by: Michal Čihař --- ChangeLog | 1 + index.php | 19 ------------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index cc034b17ea..3317eeba1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,7 @@ phpMyAdmin - ChangeLog - issue #11702 Extraneous message after edit + grid-edit - issue #11668 Table header is empty with browsing an empty table + issue #11701 Allow changing parameter order of routines +- issue #11708 Remove no password warning 4.5.3.0 (not yet released) - issue #11664 Online syntax verifier bug - "IF" on SELECT statement diff --git a/index.php b/index.php index 1aef3977d9..d942607b9d 100644 --- a/index.php +++ b/index.php @@ -448,25 +448,6 @@ echo ''; echo ''; -/** - * Warning if using the default MySQL privileged account - */ -if ($server != 0 - && $cfg['Server']['user'] == 'root' - && $cfg['Server']['password'] == '' -) { - trigger_error( - __( - 'You are connected as \'root\' with no password, which' - . ' corresponds to the default MySQL privileged account.' - . ' Your MySQL server is running with this default, is open to' - . ' intrusion, and you really should fix this security hole by' - . ' setting a password for user \'root\'.' - ), - E_USER_WARNING - ); -} - /** * As we try to handle charsets by ourself, mbstring overloads just * break it, see bug 1063821.