mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 17:44:06 +02:00
Fix parsing of {DAV:}contains element
This commit is contained in:
parent
9c24c70774
commit
bef5795c98
3 changed files with 83 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ namespace SearchDAV\XML;
|
|||
|
||||
use Sabre\Xml\Reader;
|
||||
use Sabre\Xml\XmlDeserializable;
|
||||
use SearchDAV\Query\Operator as QueryOperator;
|
||||
|
||||
class Operator implements XmlDeserializable {
|
||||
/**
|
||||
|
|
@ -63,6 +64,13 @@ class Operator implements XmlDeserializable {
|
|||
$reader->next();
|
||||
return $operator;
|
||||
}
|
||||
|
||||
if ($operator->type === QueryOperator::OPERATION_CONTAINS) {
|
||||
$operator->arguments[] = $reader->readString();
|
||||
$reader->next();
|
||||
return $operator;
|
||||
}
|
||||
|
||||
$reader->read();
|
||||
do {
|
||||
if ($reader->nodeType === Reader::ELEMENT) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue