[dokuwiki] Re: Turn superuser or manager into lists (patch)

  • From: Guy Brand <gb@xxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 23 Feb 2008 21:01:27 +0100

Andreas Gohr wrote:

> A question on one part of your patch:
> 
> hunk ./inc/auth.php 296
> -      $groups[$i] = '@'.auth_nameencode($groups[$i]);
> +      $groups[$i] = auth_nameencode('@' . $groups[$i]);
> 
> Why are you doing this?

Because not doing it leads to a double @@ for groups a user is member
of (bug in the auth_nameencode function?). I was surprised myself to
have to call auth_nameencode that way.

-- 
  bug

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: