if (tmp == NULL)
return;
- if (!strncmp(tmp, "http://", 7)) {
+ if (!strncmp(tmp, "http", 4)) {
uri = tmp;
} else if (!strncmp(tmp, "file://", 7)) {
uri = tmp;
- } else if (!strncmp(tmp, "https://", 8)) {
- uri = tmp;
- } else if (!strncmp(tmp, "webcal://", 9)) {
- uri = g_strconcat("http://", tmp+9, NULL);
+ } else if (!strncmp(tmp, "webcal", 6)) {
+ uri = g_strconcat("http", tmp+6, NULL);
g_free(tmp);
} else {
alertpanel_error(_("Could not parse the URL."));
if (uri == NULL)
return FALSE;
- if (!strncmp(uri, "webcal://", 9)) {
- tmp = g_strconcat("http://", uri+9, NULL);
+ if (!strncmp(uri, "webcal", 6)) {
+ tmp = g_strconcat("http", uri+6, NULL);
} else {
return FALSE;
}
if (strncmp(tmp, "http://", 7)
&& strncmp(tmp, "https://", 8)
&& strncmp(tmp, "webcal://", 9)
+ && strncmp(tmp, "webcals://", 10)
&& strncmp(tmp, "ftp://", 6))
contents = file_read_to_str(tmp);
else {
gchar *label = g_strdup_printf(_("Fetching planning for %s..."), email);
- if (!strncmp(tmp, "webcal://", 9)) {
- gchar *tmp2 = g_strdup_printf("http://%s", tmp+9);
+ if (!strncmp(tmp, "webcal", 6)) {
+ gchar *tmp2 = g_strdup_printf("http%s", tmp+6);
g_free(tmp);
tmp = tmp2;
}
&& strncmp(file, "http://", 7)
&& strncmp(file, "https://", 8)
&& strncmp(file, "webcal://", 9)
+ && strncmp(file, "webcals://", 10)
&& strncmp(file, "ftp://", 6)) {
gchar *afile = NULL;
if (file[0] != G_DIR_SEPARATOR)
g_free(file);
} else if (file) {
FILE *fp = g_fopen(tmpfile, "rb");
- if (!strncmp(file, "webcal://", 9)) {
- gchar *tmp = g_strdup_printf("http://%s", file+9);
+ if (!strncmp(file, "webcal", 6)) {
+ gchar *tmp = g_strdup_printf("http%s", file+6);
g_free(file);
file = tmp;
}
&& strncmp(file, "http://", 7)
&& strncmp(file, "https://", 8)
&& strncmp(file, "webcal://", 9)
+ && strncmp(file, "webcals://", 10)
&& strncmp(file, "ftp://", 6)) {
gchar *afile = NULL;
if (file[0] != G_DIR_SEPARATOR)
g_free(file);
} else if (file) {
FILE *fp = g_fopen(tmpfile, "rb");
- if (!strncmp(file, "webcal://", 9)) {
- gchar *tmp = g_strdup_printf("http://%s", file+9);
+ if (!strncmp(file, "webcal", 6)) {
+ gchar *tmp = g_strdup_printf("http%s", file+6);
g_free(file);
file = tmp;
}
!strncmp(export_path, "ftp://", 6) ||
!strncmp(export_path, "https://", 8) ||
!strncmp(export_path, "sftp://", 5) ||
- !strncmp(export_path, "webcal://", 9))) {
+ !strncmp(export_path, "webcal://", 9) ||
+ !strncmp(export_path, "webcals://", 10))) {
gtk_widget_set_sensitive(page->export_user_label, TRUE);
gtk_widget_set_sensitive(page->export_user_entry, TRUE);
gtk_widget_set_sensitive(page->export_pass_label, TRUE);
!strncmp(export_freebusy_path, "ftp://", 6) ||
!strncmp(export_freebusy_path, "https://", 8) ||
!strncmp(export_freebusy_path, "sftp://", 5) ||
- !strncmp(export_freebusy_path, "webcal://", 9))) {
+ !strncmp(export_freebusy_path, "webcal://", 9) ||
+ !strncmp(export_freebusy_path, "webcals://", 10))) {
gtk_widget_set_sensitive(page->export_freebusy_user_label, TRUE);
gtk_widget_set_sensitive(page->export_freebusy_user_entry, TRUE);
gtk_widget_set_sensitive(page->export_freebusy_pass_label, TRUE);