Tags:
create new tag
, view all tags

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 - 2005-02-21 - MattWilkie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.