mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
owncloudcmd: Fix some slash screwup, to make the split succeed bug #2211
This commit is contained in:
parent
8eaeba6486
commit
d491663143
1 changed files with 5 additions and 5 deletions
|
@ -167,11 +167,11 @@ void parseOptions( const QStringList& app_args, CmdOptions *options )
|
|||
|
||||
options->target_url = args.takeLast();
|
||||
// check if the remote.php/webdav tail was added and append if not.
|
||||
if( !options->target_url.contains("remote.php/webdav")) {
|
||||
if(!options->target_url.endsWith("/")) {
|
||||
options->target_url.append("/");
|
||||
}
|
||||
options->target_url.append("remote.php/webdav");
|
||||
if(!options->target_url.endsWith("/")) {
|
||||
options->target_url.append("/");
|
||||
}
|
||||
if( !options->target_url.contains("remote.php/webdav/")) {
|
||||
options->target_url.append("remote.php/webdav/");
|
||||
}
|
||||
if (options->target_url.startsWith("http"))
|
||||
options->target_url.replace(0, 4, "owncloud");
|
||||
|
|
Loading…
Reference in a new issue