[Pkg-owncloud-commits] [owncloud-client] 166/333: Revert "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 8e914deb99aebf05a9acc8ee3a5a4b6645de7c26
Author: Klaas Freitag <freitag at owncloud.com>
Date: Tue Mar 18 16:57:01 2014 +0100
Revert "Do not rely on the url scheme owncloud(s) any more."
This reverts commit 34dd3b207ed139a4f3e2cc1578e9afc7916977bb.
It can be implemented simpler.
---
csync/src/csync_owncloud.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/csync/src/csync_owncloud.c b/csync/src/csync_owncloud.c
index d40bf91..e97f9a5 100644
--- a/csync/src/csync_owncloud.c
+++ b/csync/src/csync_owncloud.c
@@ -486,8 +486,9 @@ static int dav_connect(const char *base_url) {
strcpy( protocol, "https");
useSSL = 1;
} else {
- // Trust the original protocol
- strcpy( protocol, scheme );
+ DEBUG_WEBDAV("Invalid scheme %s, go outa here!", scheme );
+ rc = -1;
+ goto out;
}
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