3 Commits
1.1.5 ... 1.1.6

2 changed files with 3 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ __all__ = [
"ModifyMilterConfig",
"ModifyMilter"]
__version__ = "1.1.5"
__version__ = "1.1.6"
from pymodmilter import _runtime_patches

View File

@@ -136,8 +136,5 @@ class MilterMessage(MIMEPart):
def replace_illegal_chars(string):
"""Replace illegal characters in header values."""
return string.replace(
"\x00", "").replace(
"\r", "").replace(
"\n", "")
"""Remove illegal characters from header values."""
return "".join(string.replace("\x00", "").splitlines())