[Pkg-owncloud-commits] [owncloud-client] 48/211: owncloudcmd: Fix some slash screwup, to make the split succeed bug #2211
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit d491663143b50337bd20a349ed72f22b48fc9647
Author: Klaas Freitag <freitag at owncloud.com>
Date: Sat Oct 11 15:14:07 2014 +0200
owncloudcmd: Fix some slash screwup, to make the split succeed bug #2211
---
src/owncloudcmd/owncloudcmd.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/owncloudcmd/owncloudcmd.cpp b/src/owncloudcmd/owncloudcmd.cpp
index 07ffa51..eefbc42 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");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list