mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 07:56:29 +03:00
Remove _safe suffix from dc_decode_header function
There is no longer unsafe version of this function, so suffix is useless now.
This commit is contained in:
committed by
holger krekel
parent
618abd63cf
commit
0beadde758
@@ -127,7 +127,7 @@ impl<'a> MimeParser<'a> {
|
||||
if (*field).fld_type == MAILIMF_FIELD_SUBJECT as libc::c_int {
|
||||
let subj = (*(*field).fld_data.fld_subject).sbj_value;
|
||||
|
||||
self.subject = as_opt_str(subj).map(dc_decode_header_words_safe);
|
||||
self.subject = as_opt_str(subj).map(dc_decode_header_words);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -704,7 +704,7 @@ impl<'a> MimeParser<'a> {
|
||||
// might be a wrongly encoded filename
|
||||
let s = to_string_lossy((*dsp_param).pa_data.pa_filename);
|
||||
// this is used only if the parts buffer stays empty
|
||||
desired_filename = dc_decode_header_words_safe(&s)
|
||||
desired_filename = dc_decode_header_words(&s)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user