mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
owncloudcmd: Fix some slash screwup, to make the split succeed bug #2211
This commit is contained in:
parent
8eaeba6486
commit
d491663143
@ -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 New Issue
Block a user