Needs work
Project:
autocategorise
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 11:12 UTC
Updated:
31 Jan 2012 at 23:23 UTC
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
Comment #1
matslats commentedWould 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?
Comment #1.0
matslats commentedlittle mistake corrected