If you try to send the message "0" then the empty($message['body']) on line 1775 evaluates as true and the message isn't validated. Since it is a reasonable use case that somebody would want to send "0" as a message I thought I would report this problem.
It could be fixed by changing line 1775 from:
if (!empty($message['thread_id']) && empty($message['body'])) {
To:
if (!empty($message['thread_id']) && ($message['body'] === NULL || $message['body'] === '') ) {
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | allow_sending_0_messages.patch | 908 bytes | berdir |
Comments
Comment #1
berdirMade a patch of your change, just making sure all tests pass with this.
Comment #2
berdirCommited to all branches.