Commit 9fea292f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

erp5_interface_post: fix stripMessageId() for empty string case.

parent febe861c
Pipeline #11540 failed with stage
in 0 seconds
...@@ -52,7 +52,7 @@ class InternetMessagePost(Item, MailMessageMixin): ...@@ -52,7 +52,7 @@ class InternetMessagePost(Item, MailMessageMixin):
order to permit the dot-atom-text form. Thus those "<" and ">" should order to permit the dot-atom-text form. Thus those "<" and ">" should
be stripped when working with message-ids be stripped when working with message-ids
""" """
if message_id is not None: if message_id:
if message_id[0] == '<': if message_id[0] == '<':
message_id = message_id[1:] message_id = message_id[1:]
if message_id[-1] == '>': if message_id[-1] == '>':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment