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

lib-sieve: fixed bug caused by last change to rfc2822 header verification.

parent 896a84a7
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,8 @@ bool rfc2822_header_field_name_verify
bool rfc2822_header_field_body_verify
(const char *field_body, unsigned int len, bool allow_crlf, bool allow_utf8)
{
const char *p = field_body;
const char *pend = p + len;
const unsigned char *p = (const unsigned char *)field_body;
const unsigned char *pend = p + len;
bool is8bit = FALSE;
/* RFC5322:
......@@ -60,7 +60,7 @@ bool rfc2822_header_field_body_verify
if ( (*p == '\r' || *p == '\n') && !allow_crlf )
return FALSE;
if ( !is8bit && ((unsigned char)*p) > 127 ) {
if ( !is8bit && *p > 127 ) {
if ( !allow_utf8 )
return FALSE;
......
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.