zephyr_mirror: Avoid transmitting null characters to server.

This commit is contained in:
Tim Abbott 2017-05-10 11:47:00 -07:00
parent 951c5588b6
commit fed5180d19

View file

@ -307,6 +307,8 @@ def parse_zephyr_body(zephyr_data, notice_format):
fields[0], fields[1], fields[2], fields[4], fields[3])
except ValueError:
(zsig, body) = ("", zephyr_data)
# Clean body of any null characters, since they're invalid in our protocol.
body = body.replace('\x00', '')
return (zsig, body)
def parse_crypt_table(zephyr_class, instance):