summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-25 16:50:37 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-25 16:50:37 -0500
commit9b148273005830705707bfaee135fe135d193951 (patch)
tree0ed95ccd2302ddf4a46b0be36f0dde7867f52873
parentfd9474fd52cecf326904f9bae523b75b0c3645c7 (diff)
downloadlibcarddav-9b148273005830705707bfaee135fe135d193951.tar.gz
libcarddav-9b148273005830705707bfaee135fe135d193951.zip
Fix crash
This resolves Bug 1126 Thanks to 'Skyliner' for the patch!
-rw-r--r--src/get-carddav-report.c6
1 files changed, 6 insertions, 0 deletions
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);