Fixed Login error based on bad format in command

Signed-off-by: Melvin Suter <github@damon.ch>
This commit is contained in:
Melvin Suter
2019-08-15 13:03:47 +02:00
committed by Jonas Sulzer
parent e393d5e36b
commit b1032c5bb7

View File

@@ -39,7 +39,7 @@ class OC_User_SMB extends \OCA\user_external\Base{
private function tryAuthentication($uid, $password) {
$uidEscaped = escapeshellarg($uid);
$password = escapeshellarg($password);
$command = self::SMBCLIENT.' '.escapeshellarg('//' . $this->host . '/dummy').' -U'.$uidEscaped.'%'.$password;
$command = self::SMBCLIENT.' '.escapeshellarg('//' . $this->host . '/dummy').' -U '.$uidEscaped.'%'.$password;
$lastline = exec($command, $output, $retval);
if ($retval === 127) {
OC::$server->getLogger()->error(