summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeng Xuetian <[email protected]>2012-10-02 15:24:23 -0400
committerWeng Xuetian <[email protected]>2012-10-02 15:24:23 -0400
commit2420dfeeeab69b67a982a0868cb3a0bfd8aee428 (patch)
tree34f3f3155f10b297885e35c45477ca796cd1254e
parentf647611cad141da65d4d47dda1bbaae910a6d420 (diff)
Check https:// url for owncloud and use https by default for owncloud
REVIEW: 106543
-rw-r--r--pages/basicinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/basicinfo.cpp b/pages/basicinfo.cpp
index 80b18ee..775eb67 100644
--- a/pages/basicinfo.cpp
+++ b/pages/basicinfo.cpp
@@ -99,8 +99,8 @@ bool BasicInfo::validData() const
void BasicInfo::checkServer(const QString &path)
{
QString fixedUrl;
- if (!path.startsWith("http://")) {
- fixedUrl.append("http://");
+ if (!path.startsWith("http://") && !path.startsWith("https://")) {
+ fixedUrl.append("https://");
fixedUrl.append(path);
} else {
fixedUrl = path;