Posted by LR on October 26, 2011 at 11:12am
2 followers
Jump to:
| Project: | autocategorise |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
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
#1
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?