mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-26 16:48:31 +00:00
SCP: issue error if remote_file is empty in put() call
This commit is contained in:
parent
7432a6959a
commit
5b795c18ab
@ -180,6 +180,11 @@ class Net_SCP
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($remote_file)) {
|
||||||
|
user_error('remote_file cannot be blank', E_USER_NOTICE);
|
||||||
|
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
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user