diff options
-rw-r--r-- | user_external/lib/smb.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/user_external/lib/smb.php b/user_external/lib/smb.php index ffc9b240e..5b19199d8 100644 --- a/user_external/lib/smb.php +++ b/user_external/lib/smb.php @@ -43,7 +43,7 @@ class OC_User_SMB extends \OCA\user_external\Base{ $uidEscaped=escapeshellarg($uid); $password=escapeshellarg($password); $result=array(); - $command=self::SMBCLIENT.' //'.$this->host.'/dummy -U'.$uidEscaped.'%'.$password; + $command=self::SMBCLIENT.' '.escapeshellarg('//' . $this->host . '/dummy').' -U'.$uidEscaped.'%'.$password; $lastline = exec($command, $output, $retval); if ($retval === 127) { OCP\Util::writeLog( |