From dcf288ad43b239a13dbc3eb35a978ba8cbd6a585 Mon Sep 17 00:00:00 2001 From: Platonides Date: Thu, 16 Jun 2011 21:01:52 +0000 Subject: [PATCH] Remove trailing newline from pass, which is very unlikely to be intended. --- maintenance/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/install.php b/maintenance/install.php index 781b12d5ae..9531644e26 100644 --- a/maintenance/install.php +++ b/maintenance/install.php @@ -76,7 +76,7 @@ class CommandLineInstaller extends Maintenance { if ( $dbpass === false ) { $this->error( "Couldn't open $dbpassfile", true ); } - $this->mOptions['dbpass'] = $dbpass; + $this->mOptions['dbpass'] = trim( $dbpass, "\r\n" ); } $installer = -- 2.20.1