Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2014-10-11 17:14:07 +0400
committerKlaas Freitag <freitag@owncloud.com>2014-10-11 17:14:07 +0400
commitd491663143b50337bd20a349ed72f22b48fc9647 (patch)
tree47d15481c47c4ab82c9c1be1359bc8a6d8e8958f /src/owncloudcmd
parent8eaeba6486a30dbbbe474e6425b488ec7d8aa3a1 (diff)
owncloudcmd: Fix some slash screwup, to make the split succeed bug #2211
Diffstat (limited to 'src/owncloudcmd')
-rw-r--r--src/owncloudcmd/owncloudcmd.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/owncloudcmd/owncloudcmd.cpp b/src/owncloudcmd/owncloudcmd.cpp
index 07ffa5178..eefbc4229 100644
--- a/src/owncloudcmd/owncloudcmd.cpp
+++ b/src/owncloudcmd/owncloudcmd.cpp
@@ -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");