6.0.0-beta1
7/5/25

[#6756] ssh2_scp_recv fails if pathnames contain special characters
Summary ssh2_scp_recv fails if pathnames contain special characters
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester herde (at) tu-harburg (dot) de
Created 05/25/2008 (6250 days ago)
Due
Updated 05/26/2008 (6249 days ago)
Assigned 05/25/2008 (6250 days ago)
Resolved 05/26/2008 (6249 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/26/2008 02:27:05 PM Chuck Hagenbuch Comment #4
State ⇒ Resolved
Reply to this comment
Ok - that seems to work - but: the function write needs an
escapeshellarg() for the path argument of ssh2_scp_send too.
Please look at the patch again - it's there.
05/26/2008 07:26:03 AM herde (at) tu-harburg (dot) de Comment #3 Reply to this comment
Please try this more comprehensive patch that escapes args in other
functions as well:
http://lists.horde.org/archives/cvs/Week-of-Mon-20080519/078864.html
Ok - that seems to work - but: the function write needs an 
escapeshellarg() for the path argument of ssh2_scp_send too. This 
works in case of pathnames containing whitespace characters. But i 
realize problems with german 'Umlaute' still if i try to upload a file 
with such name. I don't know how to quote them here.


05/25/2008 03:56:34 PM Chuck Hagenbuch Comment #2
Assigned to Chuck Hagenbuch
Reply to this comment
Please try this more comprehensive patch that escapes args in other 
functions as well:

http://lists.horde.org/archives/cvs/Week-of-Mon-20080519/078864.html
05/25/2008 03:56:11 PM Chuck Hagenbuch State ⇒ Feedback
 
05/25/2008 02:08:22 PM Chuck Hagenbuch Summary ⇒ ssh2_scp_recv fails if pathnames contain special characters
 
05/25/2008 01:04:51 PM herde (at) tu-harburg (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ ssh2_scp_recv failed if pathnames conains special characters
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
New Attachment: ssh2.php.patch Download
State ⇒ Unconfirmed
Reply to this comment
Horde 3.2 RC4:

If using SSH2-Backend (VFS/ssh2.php) with gollem (1.0.3 or 1.2-cvs) 
certain Pahtnames could not be downloaded (if it contains whitespace 
i.e.). By using escapeshellarg() on the result of _getPath() i am able 
to download the files as intended.  Patch attached ...




Saved Queries