LoginName to WikiName mapping should be case insensitive
While using authentication and map
LoginName to
WikiName, this mapping is case sensitive. At least in case of windows clients it should be case insensitive.
This would make the trick.
--- TWiki.pm.org 2004-08-30 08:46:11.000000000 +0200
+++ TWiki.pm 2004-11-08 09:32:56.000000000 +0100
@@ -1172,7 +1172,7 @@
# Get the WikiName and userid, and build hashes in both directions
if( ( /^\s*\* ($regex{wikiWordRegex})\s*\-\s*([^\s]*).*/o ) && $2 ) {
$wUser = $1; # WikiName
- $lUser = $2; # userid
+ $lUser = lc ( $2 ); # userid
$lUser =~ s/$securityFilter//go; # FIXME: Should filter in for security...
$userToWikiList{ $lUser } = $wUser;
$wikiToUserList{ $wUser } = $lUser;
@@ -1205,6 +1205,7 @@
return "";
}
+ $loginUser = lc ( $loginUser );
$loginUser =~ s/$securityFilter//go;
my $wUser = $userToWikiList{ $loginUser } || $loginUser;
if( $dontAddWeb ) {
--
TorstenGoedicke - 08 Nov 2004
This argument could be, and has been, extended that all wiki word
matching should be case insensitive (while on-disk storage would continue to be case sensitive),
ShorterCaseInsensitiveURLs.
--
MattWilkie - 21 Feb 2005
Topic revision: r2 - 21 Feb 2005 - 05:49:47 -
MattWilkie