[Pkg-owncloud-commits] [php-sabredav] 01/80: searchPrincipals with email: case insentive, and no wildcards
David Prévot
taffit at moszumanska.debian.org
Thu Jan 7 02:56:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit 1a8d302de048fcdc036295db6e987e7c7c801bfd
Author: vmire <vincent_257 at mireau.com>
Date: Tue Jul 14 15:51:46 2015 +0200
searchPrincipals with email: case insentive, and no wildcards
---
lib/DAVACL/PrincipalBackend/PDO.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/DAVACL/PrincipalBackend/PDO.php b/lib/DAVACL/PrincipalBackend/PDO.php
index baf1118..6fced14 100644
--- a/lib/DAVACL/PrincipalBackend/PDO.php
+++ b/lib/DAVACL/PrincipalBackend/PDO.php
@@ -252,8 +252,8 @@ class PDO extends AbstractBackend implements CreatePrincipalSupport {
$values[] = '%' . $value . '%';
break;
case '{http://sabredav.org/ns}email-address' :
- $query .= ' AND email LIKE ?';
- $values[] = '%' . $value . '%';
+ $query .= ' AND lcase(email) = lcase(?)';
+ $values[] = $value;
break;
default :
// Unsupported property
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list