Dequote the same characters that we know how to quote in
2001-08-16 Federico Mena Quintero <federico@ximian.com> * src/libical/icalvalue.c (icalmemory_strdup_and_dequote): Dequote the same characters that we know how to quote in icalvalue_text_as_ical_string(). Fixes Ximian bug #7433. svn path=/trunk/; revision=12115
This commit is contained in:
committed by
Federico Mena Quintero
parent
5810652218
commit
9333af2f12
@ -1,3 +1,9 @@
|
||||
2001-08-16 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
* src/libical/icalvalue.c (icalmemory_strdup_and_dequote): Dequote
|
||||
the same characters that we know how to quote in
|
||||
icalvalue_text_as_ical_string(). Fixes Ximian bug #7433.
|
||||
|
||||
2001-08-01 Damon Chaplin <damon@ximian.com>
|
||||
|
||||
* src/libical/icaltimezone.c: removed some debugging messages.
|
||||
|
||||
@ -181,18 +181,39 @@ char* icalmemory_strdup_and_dequote(const char* str)
|
||||
|
||||
}
|
||||
case 'n':
|
||||
{
|
||||
*pout = '\n';
|
||||
break;
|
||||
}
|
||||
case 'N':
|
||||
{
|
||||
*pout = '\n';
|
||||
break;
|
||||
}
|
||||
case '\\':
|
||||
case ',':
|
||||
case 't':
|
||||
case 'T':
|
||||
{
|
||||
*pout = '\t';
|
||||
break;
|
||||
}
|
||||
case 'r':
|
||||
case 'R':
|
||||
{
|
||||
*pout = '\r';
|
||||
break;
|
||||
}
|
||||
case 'b':
|
||||
case 'B':
|
||||
{
|
||||
*pout = '\b';
|
||||
break;
|
||||
}
|
||||
case 'f':
|
||||
case 'F':
|
||||
{
|
||||
*pout = '\f';
|
||||
break;
|
||||
}
|
||||
case ';':
|
||||
case ',':
|
||||
case '"':
|
||||
case '\\':
|
||||
{
|
||||
*pout = *p;
|
||||
break;
|
||||
@ -665,14 +686,9 @@ char* icalvalue_text_as_ical_string(icalvalue* value) {
|
||||
}
|
||||
|
||||
case ';':
|
||||
case ',':{
|
||||
icalmemory_append_char(&str,&str_p,&buf_sz,'\\');
|
||||
icalmemory_append_char(&str,&str_p,&buf_sz,*p);
|
||||
line_length+=3;
|
||||
break;
|
||||
}
|
||||
|
||||
case '"':{
|
||||
case ',':
|
||||
case '"':
|
||||
case '\\':{
|
||||
icalmemory_append_char(&str,&str_p,&buf_sz,'\\');
|
||||
icalmemory_append_char(&str,&str_p,&buf_sz,*p);
|
||||
line_length+=3;
|
||||
|
||||
Reference in New Issue
Block a user