Skip to content

Commit

Permalink
lib-sieve: enotify extension: mailto method: Fixed parsing of mailto …
Browse files Browse the repository at this point in the history
…URI with only a header part.
  • Loading branch information
stephanbosch committed Dec 3, 2017
1 parent fbedb2d commit 4a9bc3d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib-sieve/plugins/enotify/mailto/uri-mailto.c
Expand Up @@ -261,8 +261,7 @@ static bool uri_mailto_parse_recipients
}
}

/* Skip '?' */
if ( *p != '\0' ) p++;
i_assert( *p == '\0' || *p == '?' );

/* Verify and add recipient */
if ( !uri_mailto_add_valid_recipient(parser, to, FALSE) )
Expand Down Expand Up @@ -529,6 +528,11 @@ static bool uri_mailto_parse_uri
if ( !uri_mailto_parse_recipients(parser, &p) )
return FALSE;

if ( *p == '\0' )
return TRUE;
i_assert( *p == '?' );
p++;

/* Extract hfield items */

while ( *p != '\0' ) {
Expand Down

0 comments on commit 4a9bc3d

Please sign in to comment.