PITS /
01120: $GroupPattern entries should be case-sensitive on unix
Summary:
$GroupPattern
entries should be case-sensitive on unixCreated: 2009-07-17 12:20
Status: Closed - not a bug
Category: Bug
Assigned:
Priority: 4
Version: 2.2.2
OS: Solaris/Apache2/PHP5
Description:
When specifying $GroupPattern
in config.php, the wiki is allowing groups to be added/accessed that do not match what is entered in the list.
$GroupPattern
= '(?:Site|SiteAdmin|PmWiki|Profiles|GROUPName)';
allows "groupname" or "GroupName", etc. to be added...and should not.
The default case-insensitive RegExp processing is not a bug, and changing it may break a number of existing wikis. But you can set this sub-pattern to case-sensitive with the -i
switch, see below. --Petko July 17, 2009, at 01:24 PM
$GroupPattern
= '(?-i:Site|SiteAdmin|PmWiki|Profiles|GROUPName)';
And the BasicVariables page was updated. --Petko July 17, 2009, at 01:32 PM