zephyr_mirror: Avoid transmitting null characters to server.
This commit is contained in:
parent
951c5588b6
commit
fed5180d19
|
@ -307,6 +307,8 @@ def parse_zephyr_body(zephyr_data, notice_format):
|
||||||
fields[0], fields[1], fields[2], fields[4], fields[3])
|
fields[0], fields[1], fields[2], fields[4], fields[3])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
(zsig, body) = ("", zephyr_data)
|
(zsig, body) = ("", zephyr_data)
|
||||||
|
# Clean body of any null characters, since they're invalid in our protocol.
|
||||||
|
body = body.replace('\x00', '')
|
||||||
return (zsig, body)
|
return (zsig, body)
|
||||||
|
|
||||||
def parse_crypt_table(zephyr_class, instance):
|
def parse_crypt_table(zephyr_class, instance):
|
||||||
|
|
Loading…
Reference in a new issue