Merge pull request #21641 from owncloud/fix_21639

Do not lower the sharee search
This commit is contained in:
Thomas Müller 2016-01-12 13:16:57 +01:00
commit 6ca24d53ea
2 changed files with 5 additions and 1 deletions

View File

@ -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);
}
/**

View File

@ -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],
];
}