From 38aef0d8b42f71d7f9eef971256a9a28ed07a6bb Mon Sep 17 00:00:00 2001 From: Johannes Schlatow Date: Wed, 30 Nov 2011 00:15:08 +0100 Subject: [PATCH] Bug - Fixed that 'ssh://host/~/path' was wrongly translated into scp syntax; it must be 'host:~/path' instead of 'host:/~/path' --- src/Uri.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uri.cpp b/src/Uri.cpp index c74fee390..0bc02ca78 100644 --- a/src/Uri.cpp +++ b/src/Uri.cpp @@ -294,7 +294,7 @@ void Uri::parse () } // path is absolute for ssh:// syntax - if ( (_protocol == "ssh") && (pathDelimiter == "/") ) + if ( (_protocol == "ssh") && (pathDelimiter == "/") && (_path[0] != '~') ) { _path = "/" + _path; }