From 9b148273005830705707bfaee135fe135d193951 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 25 Jul 2012 16:50:37 -0500 Subject: Fix crash This resolves Bug 1126 Thanks to 'Skyliner' for the patch! --- src/get-carddav-report.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/get-carddav-report.c b/src/get-carddav-report.c index 5c549b9..971f6d1 100644 --- a/src/get-carddav-report.c +++ b/src/get-carddav-report.c @@ -143,6 +143,9 @@ static gchar* carddav_dirlist(carddav_settings* settings, carddav_error* error) if (!href) { href = get_tag("D:href", tmp_report); } + if (!href) { + href = get_tag("d:href", tmp_report); + } pos = strstr(tmp_report, href); all_href = g_strdup_printf(""); while ((href != NULL) && (pos != NULL)) { @@ -151,6 +154,9 @@ static gchar* carddav_dirlist(carddav_settings* settings, carddav_error* error) if (!href) { href = get_tag("D:href", pos); } + if (!href) { + href = get_tag("d:href", pos); + } if (!href) break; pos = strstr(pos, href); -- cgit v1.2.3