mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 17:44:06 +02:00
add more tests
This commit is contained in:
parent
1e7efdd48b
commit
5c2a3f1b02
11 changed files with 337 additions and 5 deletions
|
|
@ -51,8 +51,10 @@ class SearchHandler {
|
|||
}
|
||||
|
||||
public function handleSearchRequest($xml, ResponseInterface $response) {
|
||||
if (!$xml['{DAV:}basicsearch']) {
|
||||
throw new BadRequest('Unexpected xml content for searchrequest, expected basicsearch');
|
||||
if (!isset($xml['{DAV:}basicsearch'])) {
|
||||
$response->setStatus(400);
|
||||
$response->setBody('Unexpected xml content for searchrequest, expected basicsearch');
|
||||
return false;
|
||||
}
|
||||
/** @var BasicSearch $query */
|
||||
$query = $xml['{DAV:}basicsearch'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue