aboutsummaryrefslogtreecommitdiffstats
path: root/libical
diff options
context:
space:
mode:
Diffstat (limited to 'libical')
-rw-r--r--libical/ChangeLog5
-rw-r--r--libical/src/libical/icalvalue.c15
2 files changed, 18 insertions, 2 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index ba2c98c222..4a3ae383d6 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-11 Federico Mena Quintero <federico@ximian.com>
+
+ * src/libical/icalvalue.c (icalvalue_new_from_string_with_error):
+ Generate an ICAL_ATTACH_VALUE value from the string.
+
2001-09-10 Damon Chaplin <damon@ximian.com>
* src/libical/icalcomponent.c (icalcomponent_compare_vtimezones):
diff --git a/libical/src/libical/icalvalue.c b/libical/src/libical/icalvalue.c
index 6b887d3be5..adcf6abbe5 100644
--- a/libical/src/libical/icalvalue.c
+++ b/libical/src/libical/icalvalue.c
@@ -276,9 +276,20 @@ icalvalue_new_from_string_with_error(icalvalue_kind kind,const char* str,icalpro
}
switch (kind){
-
case ICAL_ATTACH_VALUE:
- case ICAL_BINARY_VALUE:
+ {
+ icalattach *attach;
+
+ attach = icalattach_new_from_url (str);
+ if (!attach)
+ break;
+
+ value = icalvalue_new_attach (attach);
+ icalattach_unref (attach);
+ break;
+ }
+
+ case ICAL_BINARY_VALUE:
case ICAL_BOOLEAN_VALUE:
{
/* HACK */