[dokuwiki] Re: Bug in Usermanager

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 05 Nov 2005 14:19:25 +0000

Matthias Grimm wrote:

Hi,
I found a bug in the usermanager
Thanks Matthias, plugin has been updated.

Re. your other message ....
1. The filter settings were
displayed above the input fields. I would prefer
  to keep the filters inside the text input fields. This makes it possible
  to change a filter. Currently you always need start from scratch. And the
  list display won't "jump (down)" anymore.

Can you explain this a little more.  I don't understand what you mean by "jump 
down"

3. We shouldn't allow any search patterns and wildcards in the filters. I
  think your plain_class.php allows regular expressions but a SQL database
  is not able to handle this and I don't want to do it by hand. I think it
  would be sufficient to limit filters to partly words here.

I toyed with the idea of a property or method allowing a auth class to say 
whether or not it supports filters, but decided not to included it in the first 
release - following KISS principles :)

fwiw, MySQL does support regular expression via REGEXP.  e.g. SELECT * FROM userlist 
WHERE email REGEXP "^*@some.com$"

However, I don't think it matters how you implement the filter in a particular 
back end.  Plain can use regexp easily, so why not.  Another auth system can 
implement filters as partial matches, preg syntax, SQL pattern matching syntax 
(LIKE) or some other system.  Since any one installation of Dokuwiki will only 
have one auth backend I don't think it matters if the filter system used is 
different.

Cheers,

Chris


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

Other related posts: