Hi,

I have a problem with Word Filter filtering links inside the text. Here's the explanation. Let's say I have the following code:

The whole phrase "I - Love Module - Word Filter" is meant to be link. If I have auto-link for "Module" in Word Filter database (eg linking to drupal.org), I get strange behaviour. "I - Love" is correctly linked to "http://www.example.com", "Module" is linked to drupal.org and the rest isn't linked at all.

Can you please explain me the logic behind this one so I can adapt or is it a bug?

Thank you in advance

Comments

jaydub’s picture

lion123 contacted me outside the issue queue. I think the issue here is that the replacement string in question is greater than the column length of the replacement field in the wordfilter table. That means that his|her replacement string is getting truncated in the DB resulting in the broken HTML. At least that's my theory.

I've asked lion123 to try with a replacement string verified to be less than 255 chars to make sure filtering works otherwise.

jaydub’s picture

Status: Active » Closed (duplicate)

duplicate of #664692