Remove trailing newline from pass, which is very unlikely to be intended.
authorPlatonides <platonides@users.mediawiki.org>
Thu, 16 Jun 2011 21:01:52 +0000 (21:01 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Thu, 16 Jun 2011 21:01:52 +0000 (21:01 +0000)
maintenance/install.php

index 781b12d..9531644 100644 (file)
@@ -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 =