diff options
author | Vincent Petry <PVince81@owncloud.com> | 2016-07-04 11:20:14 +0300 |
---|---|---|
committer | Vincent Petry <PVince81@owncloud.com> | 2016-07-04 11:20:14 +0300 |
commit | 38853ce82b9cdfb31a5887444097448ee38df36c (patch) | |
tree | 72a6902acf879418bee3d8511cffd671ec7de0a9 | |
parent | 5c962aa7c16c6323f0e4dacb16e69073cf23cbd5 (diff) |
Escape host argument in SMB user backend
-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( |