Skip to content
Snippets Groups Projects
Commit 4a9bc3d2 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

lib-sieve: enotify extension: mailto method: Fixed parsing of mailto URI with only a header part.

parent fbedb2db
No related branches found
No related tags found
No related merge requests found
......@@ -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) )
......@@ -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' ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.