[turba] Strict field checking
Chuck Hagenbuch
chuck@horde.org
Sun, 3 Jun 2001 00:13:41 -0400
Quoting Jon Parise <jon@csh.rit.edu>:
> In lib/Source.php, it looks like strict field checking is enabled
> for the primary key whenever we search a non-public source:
>
> $strict_fields = array();
> if (!$this->public) {
> $search_criteria['__owner'] = Auth::getAuth();
> $strict_fields = array_keys($this->toDriverKeys(array('__owner'
> => '')));
> }
>
> Why? It makes it a little harder to search for names (using SQL)
> because the search becomes case-sensitive when strict fields are
> used.
That's for the owner field, not the key. It ensures that user 'smith' won't be
able to access contacts owned by user 'smithfield'. It shouldn't affect looking
for names at all...
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
Black and white and grey, all the shades of truth.