summaryrefslogtreecommitdiff
path: root/desktop/loginlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/loginlist.c')
-rw-r--r--desktop/loginlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/loginlist.c b/desktop/loginlist.c
index ca632c03f..0373d441a 100644
--- a/desktop/loginlist.c
+++ b/desktop/loginlist.c
@@ -72,7 +72,8 @@ struct login *login_list_get(char *host) {
if (host == NULL)
return NULL;
- if (strncasecmp(host, "http", 4) != 0)
+ if ((strncasecmp(host, "http://", 7) != 0) ||
+ (strncasecmp(host, "https://", 8) != 0))
return NULL;
temphost = get_host_from_url(host);