summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-12 13:16:57 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-12 13:16:57 +0100
commit6ca24d53ea8fd434ef0f3fb253c720173b19cf27 (patch)
tree7528c949e236a7ba85a17a35103acb10c887f916
parent0c0829fbc73ce10ea1a951989c20973b6b5faa16 (diff)
parentbe8125b8e2cf93eccad5cad09c9a1fd8167515b8 (diff)
downloadnextcloud-server-6ca24d53ea8fd434ef0f3fb253c720173b19cf27.tar.gz
nextcloud-server-6ca24d53ea8fd434ef0f3fb253c720173b19cf27.zip
Merge pull request #21641 from owncloud/fix_21639
Do not lower the sharee search
-rw-r--r--apps/files_sharing/api/sharees.php2
-rw-r--r--apps/files_sharing/tests/api/shareestest.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/api/sharees.php b/apps/files_sharing/api/sharees.php
index 24b51d7afe4..3ddf54c3eaf 100644
--- a/apps/files_sharing/api/sharees.php
+++ b/apps/files_sharing/api/sharees.php
@@ -353,7 +353,7 @@ class Sharees {
$this->limit = (int) $perPage;
$this->offset = $perPage * ($page - 1);
- return $this->searchSharees(strtolower($search), $itemType, $shareTypes, $page, $perPage);
+ return $this->searchSharees($search, $itemType, $shareTypes, $page, $perPage);
}
/**
diff --git a/apps/files_sharing/tests/api/shareestest.php b/apps/files_sharing/tests/api/shareestest.php
index 96ffe4682c0..f4e9123976a 100644
--- a/apps/files_sharing/tests/api/shareestest.php
+++ b/apps/files_sharing/tests/api/shareestest.php
@@ -1043,6 +1043,10 @@ class ShareesTest extends TestCase {
[[], 'no', 'yes', true, '', null, $allTypes, 1, 200, false, true],
[[], 'no', 'no', true, '', null, $allTypes, 1, 200, false, false],
+ // Test keep case for search
+ [[
+ 'search' => 'foo@example.com/ownCloud',
+ ], '', 'yes', true, 'foo@example.com/ownCloud', null, $allTypes, 1, 200, false, true],
];
}