mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 02:35:10 +00:00
Merge pull request #394 from terrafrost/scp-spaces
SCP: add support for file names with spaces * terrafrost/scp-spaces: SCP: always encapsulate filenames within double quotes SCP: add support for file names with spaces
This commit is contained in:
commit
ba24e04729
@ -170,7 +170,7 @@ class Net_SCP
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->ssh->exec('scp -t ' . $remote_file, false)) { // -t = to
|
if (!$this->ssh->exec('scp -t "' . $remote_file . '"', false)) { // -t = to
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ class Net_SCP
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->ssh->exec('scp -f ' . $remote_file, false)) { // -f = from
|
if (!$this->ssh->exec('scp -f "' . $remote_file . '"', false)) { // -f = from
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user