]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
push-notification plugin: properly terminate strings
authorMichael Koch <michael.koch@open-xchange.com>
Wed, 16 Aug 2017 10:53:55 +0000 (13:53 +0300)
committerJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Wed, 16 Aug 2017 10:53:55 +0000 (13:53 +0300)
commit3df60858b15645fbc64ac18842c2545da0439c08
tree73565daf0c158b25e883cad9e653ac882eedf4b1
parentbd18d17a3da7c96a027d784183e9a98b1b666bad
push-notification plugin: properly terminate strings

Without this fix, if the new message does not contain a from, a subject, and
a snippet the generated JSON will be malformed (the status check at the end
appended a '"' when it shouldn't have).
src/plugins/push-notification/push-notification-driver-ox.c