Steps to reproduce :
1. Create a vocabulary
2. In vocabulary edition, check "Only match Autocategorised terms on whole words"
3. Create a term in this vocabulary. For example "Research / University"
4. Create a content
5. Attach this type of this content to the vocabulary
6. In the vocabulary, click the "Run Autocategorise" button

You will get this error :
preg_match() [function.preg-match]: Unknown modifier 'n' in /var/www/drupal/sites/all/modules/autocategorise/autocategorise.module on line 403.

Comments

matslats’s picture

Status: Active » Needs work

Would be nice if someone else fixed this.
is there a function for escaping a string to put into a regular expression?
What if the term to be matched had a backslash in? or a dot?

matslats’s picture

Issue summary: View changes

little mistake corrected