mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-15 19:16:55 +00:00
Merge branch 'master' of https://github.com/phpseclib/phpseclib
This commit is contained in:
commit
bf7b1630ea
@ -149,8 +149,7 @@ class SCP
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($remote_file)) {
|
if (empty($remote_file)) {
|
||||||
user_error('remote_file cannot be blank', E_USER_NOTICE);
|
throw new \InvalidArgumentException('remote_file cannot be blank');
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->ssh->exec('scp -t ' . escapeshellarg($remote_file), false)) { // -t = to
|
if (!$this->ssh->exec('scp -t ' . escapeshellarg($remote_file), false)) { // -t = to
|
||||||
|
Loading…
Reference in New Issue
Block a user