I found that the word links filter would break and give an error if there's a forward slash (/) in one of the word_link words. This is because the forward slash is being used as a delimiter in word_link_convert_text().

Warning: preg_match_all(): Unknown modifier '[some letter]' in word_link_convert_text()...

I fixed this by adding a character to escape forward slashes before the pattern is fully built.

Comments

kleinmp’s picture

StatusFileSize
new710 bytes

Attaching patch

paravibe’s picture

Status: Active » Needs review
paravibe’s picture

Thank you for your patch.
I think that specifying delimiter to preg_quote() function is better way, isn't it?

  • Commit 14de7b6 on 7.x-2.x by paravibe:
    Issue #2274475, by kleinmp: Slashes in words break the regex pattern.
    
paravibe’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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