mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 08:10:58 +00:00
SCP: replace user_error with exception
This commit is contained in:
parent
0f3cbce359
commit
41c76d6e0e
@ -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