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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | issue-2274475-slashes_break_the_regex_pattern.patch | 918 bytes | paravibe |
| #1 | slash-breaks-regex-pattern-2274475-1.patch | 710 bytes | kleinmp |
Comments
Comment #1
kleinmp commentedAttaching patch
Comment #2
paravibe commentedComment #3
paravibe commentedThank you for your patch.
I think that specifying delimiter to preg_quote() function is better way, isn't it?
Comment #5
paravibe commented