Hi,

I found a bug in smsbox, related to empty text SMS handling (or a sms
contaning only spaces). The problem arises when you send a space only text
for example, and in the default sms-service get-url you use the %k token,
for example

   group = sms-service
   keyword = default
   get-url = http://localhost/default.php?keyword=%k

smsbox exits with a failed assertion

   2002-01-10 16:56:13 [4] PANIC: gwlib/list.c:213: list_get: Assertion `pos
< list->len' failed.

I fixed the bug with some additional checking in the urltrans_get_pattern
function.

Could someone commit this patch to the cvs?

Angel Fradejas.

Attachment: patch_urltrans.diff
Description: Binary data

Reply via email to