[gmime: 1/6] Ignore superfluous colons and whitespace when parsing group addresses



commit 9629e04406f24fd6d3a81858420c3f27747b95ae
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Sat Oct 7 09:45:23 2017 -0400

    Ignore superfluous colons and whitespace when parsing group addresses
    
    Fixes issue #15

 gmime/internet-address.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gmime/internet-address.c b/gmime/internet-address.c
index 13d2aeb..59b17e2 100644
--- a/gmime/internet-address.c
+++ b/gmime/internet-address.c
@@ -1770,6 +1770,10 @@ group_parse (InternetAddressGroup *group, GMimeParserOptions *options, const cha
        /* skip over the ':' */
        inptr++;
        
+       /* ignore superfluous colons (and whitespace) */
+       while (*inptr == ':' || is_lwsp (*inptr))
+               inptr++;
+       
        if (*inptr != '\0') {
                address_list_parse (group->members, options, &inptr, TRUE);
                


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]