Closed (duplicate)
Project:
Mollom
Version:
6.x-1.15
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2010 at 00:21 UTC
Updated:
24 Jun 2011 at 15:44 UTC
Jump to comment: Most recent file
I'm getting this message in my log very frequently from mollom.
Invalid UTF-8 in form values
Data:
@data
Can anyone tell me what this might mean and how i can fix it? Sorry for the amateur question. Thank you!
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | mollom.utf8-log.4.patch | 1.05 KB | sun |
Comments
Comment #1
sunThis means that someone (most likely a spambot) attempted to post values to your site, containing invalid UTF-8 bytes.
Such values would normally only be stored by Drupal, but never output. They would also be stripped off and thus missing in the module's communication with the Mollom servers.
Therefore, the Mollom module blocks all form submissions that contain invalid UTF-8. The form submission attempt is logged for informational purposes only, so you should be safe to ignore those log messages.
--
However, "@data" should actually be replaced with the posted values of the attempted form submission. Is it always @data, or do you sometimes see some information instead of @data?
Comment #2
dries commentedSee also #943722: Form API accepts values containing invalid UTF-8.
Comment #3
mmgg commentedYes the error message always reports "@data".
Spam and ham messages print the actual data being blocked or allowed... so it seems that mollom is working correctly overall? It's just a bit annoying to have my logs flooded with this error.
Comment #4
sunFinally figured it out. For now, only documented as @todo in the code, commenting out the @data placeholder.
Comment #6
dries commentedThis patch looks good to me.
I'm trying to figure out how and if we're ever going to resolve the @todo. I'm not sure we will or have to. Hence, make it is OK to just remove the @todo?
Comment #7
sunI've resolved this in a better way in #1093108: Invalid XML characters in user input are attempted to be sent to Mollom