- changed the parsing of ssh:// URIs, paths are now absolute by default
This commit is contained in:
Johannes Schlatow 2011-05-02 16:18:40 +02:00
parent df8496edae
commit 398371d324
4 changed files with 24 additions and 11 deletions

View file

@ -255,6 +255,12 @@ void Uri::parse ()
throw std::string ("The uri '") + data + "' is not in the expected format.";
}
// path is absolute for ssh:// syntax
if ( (protocol == "ssh") && (pathDelimiter == "/") )
{
path = "/" + path;
}
// port specified?
// remark: this find() will never be != npos for scp-like syntax
// because we found pathDelimiter, which is ":", before