mirror of https://github.com/zulip/zulip.git
zephyr-mirror: Fix bug in zsig splitting.
(imported from commit 26f9784d0771d148dcb92dc4b1fca9d501d3d8f4)
This commit is contained in:
parent
890420de49
commit
9696e12c45
|
@ -52,7 +52,7 @@ for sub in subs_list.split():
|
|||
print "Starting receive loop"
|
||||
while True:
|
||||
notice = zephyr.receive(block=True)
|
||||
[zsig, body] = notice.message.split("\x00")
|
||||
[zsig, body] = notice.message.split("\x00", 1)
|
||||
sys.stdout.write("received a message on %s from %s..." % (notice.cls, notice.sender))
|
||||
send_zephyr(cgi.escape(notice.sender), cgi.escape(notice.cls), cgi.escape(notice.instance), cgi.escape(body))
|
||||
print "forwarded"
|
||||
|
|
Loading…
Reference in New Issue