wpDiscuz – User & Comment Mentioning: HTML entities detected as mentions
-
Hi,
when a comment has an HTML entity inside, for instance:“Pete & #039;s dragon” (space added between & and # otherwise the entity is converted to ‘)
The plugin “wpDiscuz – User & Comment Mentioning” uncorrectly put a link on comment #039. I solved the issue on my site by modifying the regular expression in WpdiscuzUCM.php file, line 391. The regexp pattern should be:
/[^&](\#\d+)[^\s\w]*/is
I’m hoping that the fix can be made upstream. Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wpDiscuz – User & Comment Mentioning: HTML entities detected as mentions’ is closed to new replies.