Noticed an error in the most recent spam module download (2/9) when trying to input new custom filter. Tracked it to small error in line 680, function spam_admin_custom_add():

db_query("INSERT INTO {spam_custom} (filter, regex, effect, autodelete) VALUES('%s', %d, %d)", $edit['filter'], $edit['regex'], $edit['effect'], $edit['autodelete']);

VALUES needs another %d

Comments

jeremy’s picture

Assigned: Unassigned » jeremy
Priority: Normal » Critical

Thanks! Fixed in CVS and 4.5.

Anonymous’s picture