Merge branch 'master' into php5

* master:
  SCP: always encapsulate filenames within double quotes
  SCP: add support for file names with spaces
This commit is contained in:
Andreas Fischer 2014-07-05 17:40:07 +02:00
commit d198756a76

View File

@ -170,7 +170,7 @@ class Net_SCP
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;
}
@ -245,7 +245,7 @@ class Net_SCP
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;
}