Skip to content
Snippets Groups Projects
Commit 4f9cc567 authored by Gabriel Birke's avatar Gabriel Birke
Browse files

filter usernames case-insensitive in user manager

darcs-hash:20080213194342-79ce3-e05ea08fd276d0d841863878d614412aeaf2e305.gz
parent 14f6540f
No related branches found
No related tags found
No related merge requests found
......@@ -310,8 +310,8 @@ class auth_plain extends auth_basic {
function _constructPattern($filter) {
$this->_pattern = array();
foreach ($filter as $item => $pattern) {
// $this->_pattern[$item] = '/'.preg_quote($pattern,"/").'/'; // don't allow regex characters
$this->_pattern[$item] = '/'.str_replace('/','\/',$pattern).'/'; // allow regex characters
// $this->_pattern[$item] = '/'.preg_quote($pattern,"/").'/i'; // don't allow regex characters
$this->_pattern[$item] = '/'.str_replace('/','\/',$pattern).'/i'; // allow regex characters
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment