6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/26/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6227] ssh2 implementation of VFS should quote whitespace pathnames with ssh2_exec
*
Your Email Address
*
Spam protection
Enter the letters below:
__ ..__ __.. . / ` |[__)(__ | | \__.\__|| \.__)|__|
Comment
> When we try to list the contents of an imported windows folder from a > SSH2-Server (unix) and its pathname contains any whitespace > characters we get an exhausted session memory and a blank page as > result. > > > > As far as i could figure out this is due to these lines of code: > > VFS/ssh2.php Line 425 (ls -al) or 428 (ls -l) > > > > $stream = @ssh2_exec($this->_stream, 'ls -al'); > > > > I wrote a little test script and looked onto the error substream > which told me: > > > > "No such file or directory: /path !" > > > > if i try to execute a 'ls -l /path with whitespace' > > > > if i do the same but quoting whitespace ('\ ') the code works fine - > > but it really should check for error messages and quote pathnames if > nessessary .... > > > > The exhausted session memory is produced afterwards when trying to > read (blocked) from this stream and waiting for an EOF which results > in an endless loop until the memory limit is reached. > > > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers