From d77965406873dd133fc8a2dca3d7fb211f3c2c2b Mon Sep 17 00:00:00 2001 From: Alex Kiraly Date: Sun, 29 Sep 2024 07:52:54 +0300 Subject: [PATCH] Disallow Cloud Sync with HTTPs when HAVE_SSL is disabled (#17059) --- network/cloud_sync/webdav.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/network/cloud_sync/webdav.c b/network/cloud_sync/webdav.c index 6f68ae83a4..57d6922e29 100644 --- a/network/cloud_sync/webdav.c +++ b/network/cloud_sync/webdav.c @@ -506,6 +506,10 @@ static bool webdav_sync_begin(cloud_sync_complete_handler_t cb, void *user_data) if (string_is_empty(url)) return false; +#ifndef HAVE_SSL + if (strncmp(url, "https", 5) == 0) + return false; +#endif /* TODO: LOCK? */ if (!strstr(url, "://"))