diff options
-rw-r--r-- | apps/files_external/3rdparty/smb4php/smb.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/3rdparty/smb4php/smb.php b/apps/files_external/3rdparty/smb4php/smb.php index e325506fa14..7ffdb42e134 100644 --- a/apps/files_external/3rdparty/smb4php/smb.php +++ b/apps/files_external/3rdparty/smb4php/smb.php @@ -112,6 +112,11 @@ class smb { function execute ($command, $purl, $regexp = NULL) { + if (strpos($command,';') !== false) { + trigger_error('Semicolon not supported in commands'); + exit(); + } + return smb::client ('-d 0 ' . escapeshellarg ('//' . $purl['host'] . '/' . $purl['share']) . ' -c ' . escapeshellarg ($command), $purl, $regexp |