v0.2 protected Multibyte string support, less restrictive literals, quoted literals.Release v0.2
Now a user name or a group is matched by the regular expression
[\w.-]+, which means that dots and dashes (
-) can be used freely in usernames.
User names and groups that are not matched by
[\w.-]+can still be quoted. This allows any character to be part of a username. Double quotes must be used, e.g.
"user space name". Double quotes themselves can be escaped by a backslash:
"did you actually put \" in a username?". Out of completeness, a backslash can also be specified, but it must be escaped to (i.e. doubled):"you can insert \"`.
If the PHP extension
mbstringis loaded, IfAuthEx will automatically treat the strings as multibyte with UTF-8 encoding. When
mbstringis not loaded, it will automatically fallback to standard string functionality (single byte). This means that all multibyte characters matching
\ware automatically valid user name and group characters.