[Tickets #6227] Re: ssh2 implementation of VFS should quote whitespace pathnames with ssh2_exec

bugs at horde.org bugs at horde.org
Tue Feb 12 10:35:49 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=6227
-----------------------------------------------------------------------
 Ticket             | 6227
 Updated By         | herde at tu-harburg.de
 Summary            | ssh2 implementation of VFS should quote whitespace pathnames with
                    | ssh2_exec
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Assigned
 Priority           | 2. Medium
 Milestone          | 
 Patch              | 
 Owners             | Jan Schneider
-----------------------------------------------------------------------


herde at tu-harburg.de (2008-02-12 05:35) wrote:

This patch works for my installation

425c425
<                 $stream = @ssh2_exec($this->_stream, "ls -al $path");
---
>                 $stream = @ssh2_exec($this->_stream, "ls -al
".escapeshellarg($path));
428c428
<                 $stream = @ssh2_exec($this->_stream, "ls -l $path");
---
>                 $stream = @ssh2_exec($this->_stream, "ls -l
".escapeshellarg($path));




More information about the bugs mailing list