Hi,

I just tested the module, it's simple and work almost as expected.

Whenever I submit a comment (whichever user account/role I use) I got an error.

Warning : mb_stripos(): Empty delimiter in comment_control_comment_save() (line 162 in www\sites\all\modules\contrib\comment_control\comment_control.module).

It happens when the "List of disallowed words" is empty but the "List of disallowed bad words" isn't. In this case the first entry in the $word_list variable is empty which cause the error.

Unfortunately with my current knowledge I don't know how to fix it :/...

The comment is still saved and found in "admin/content/comment/approval" and the detection of bad words worked fine.

CommentFileSizeAuthor
#2 2685597-2.patch606 bytesfelribeiro

Comments

Anonymous’s picture

LaAaZ created an issue. See original summary.

felribeiro’s picture

Status: Active » Needs review
StatusFileSize
new606 bytes
newsec’s picture

Hi,

LaAaZ, felribeiro thanks for the report and patch.

Commited.

newsec’s picture

LaAaZ, use 7.x-1.x-dev version please.

newsec’s picture

Status: Needs review » Fixed

  • newsec committed f3fc115 on 7.x-1.x
    Issue #2685597 by felribeiro, LaAaZ: Error "empty delimiter" after...
Anonymous’s picture

Just tested the 7.x-1.x-dev version and the issue is fixed indeed. Thank you very much.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.