From: Sergio Santoro Date: Sat, 12 Jul 2014 22:12:21 +0000 (+0200) Subject: WebInstaller::setVarsFromRequest() do not trim passwords X-Git-Tag: 1.31.0-rc.0~14842^2 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=e33dc0c17f314f2dd9a82ccff38ce209e3015525;p=lhc%2Fweb%2Fwiklou.git WebInstaller::setVarsFromRequest() do not trim passwords Bug: 30524 Change-Id: Ide30c9078ae8cbf97a6f86c4e230f44ce8382a1f --- diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index 46348f917c..c4e35e9afb 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -1051,7 +1051,11 @@ class WebInstaller extends Installer { $newValues = array(); foreach ( $varNames as $name ) { - $value = trim( $this->request->getVal( $prefix . $name ) ); + $value = $this->request->getVal( $prefix . $name ); + // bug 30524, do not trim passwords + if ( stripos( $name, 'password' ) === false ) { + $value = trim( $value ); + } $newValues[$name] = $value; if ( $value === null ) {