[Pkg-owncloud-commits] [owncloud-client] 165/333: Do not rely on the url scheme owncloud(s) any more.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:49 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 34dd3b207ed139a4f3e2cc1578e9afc7916977bb
Author: Klaas Freitag <freitag at owncloud.com>
Date: Tue Mar 18 14:16:50 2014 +0100
Do not rely on the url scheme owncloud(s) any more.
If it is not owncloud or ownclouds, rely on the scheme
that was given by the user.
---
csync/src/csync_owncloud.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/csync/src/csync_owncloud.c b/csync/src/csync_owncloud.c
index e97f9a5..d40bf91 100644
--- a/csync/src/csync_owncloud.c
+++ b/csync/src/csync_owncloud.c
@@ -486,9 +486,8 @@ static int dav_connect(const char *base_url) {
strcpy( protocol, "https");
useSSL = 1;
} else {
- DEBUG_WEBDAV("Invalid scheme %s, go outa here!", scheme );
- rc = -1;
- goto out;
+ // Trust the original protocol
+ strcpy( protocol, scheme );
}
DEBUG_WEBDAV("* user %s", dav_session.user ? dav_session.user : "");
--
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