Opened 17 years ago
Closed 16 years ago
#7268 closed defect (bug) (worksforme)
Comments with ' or " in are treated as spam
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.5.1 |
Component: | Comments | Keywords: | |
Focuses: | Cc: |
Description
On one site we've had a number of comments being automatically classed as spam where the user has included the character ' (& also possibly "). These are being converted into ' (when I've used print_r to put create the body text for wp_mail they're actually \') and then are being flagged as spam by wp_blacklist_check.
If I amend line 415 of wp-includes/comment.php to check for character 39 as well then the same comment is added into the comment list for approval.
No extra spam filters/plugins have been included on the site, it's just using the default processing supplied by WP 2.5.1. Nothing has been added to the comment blacklist setting in Settings->Discussion
The site is running on a shared Unix server & the hosting company have switched off phpInfo(), so unfortunately I can't supply the settings there.
We have to figure out why characters are being encoded before the blacklist check.