Closed (fixed)
Project:
User-Selectable Roles
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 Aug 2009 at 22:52 UTC
Updated:
9 Oct 2009 at 13:36 UTC
Role label validation does not support Unicode characters
$pattern = "'(\w+)\|(\w+)'";
should be
$pattern = "'(\pL+)\|(\pL+)'";
Comments
Comment #1
johnhanley commentedAh, good catch. I will role this into the next release. Thanks!
Comment #2
johnhanley commentedThis issue has been fixed and is part of the newest release. Thanks again for reporting it.
Comment #4
lukebrenner commentedThat is very interesting !
I am getting the exact opposite result !
I'm using version 6.x-1.4 on a Drupal 6.14 installation and when I enable "Allow user-selectable roles" I am getting this error :
If I go and change
to
on line 117 in user_selectable_roles.module, then it works with no errors.
Any ideas ?
Comment #5
johnhanley commentedWhat version of PHP are you using? Is this your own local server or a web host?
Comment #6
lukebrenner commentedHi,
I am using PHP 5.2.6 and this is a VPS running Centos 5.3.
Comment #7
johnhanley commentedI did some quick research regarding the above error and apparently it can be caused when the PCRE (Perl Compatible Regular Expressions) library is not compiled to support certain patterns (as the error message indicates.) In other words this appears to be a server-specific issue.
Comment #8
lukebrenner commentedWell, I guess I just have to leave it the way it works for me then ;)
Thank you.
Comment #9
johnhanley commented