mirror of
https://github.com/nextcloud/server.git
synced 2026-05-23 18:46:30 -04:00
Merge pull request #48032 from nextcloud/backport/48013/stable28
[stable28] fix(BaseResponse): Cast XML element values to string
This commit is contained in:
commit
f20bef0eec
1 changed files with 3 additions and 1 deletions
|
|
@ -163,8 +163,10 @@ abstract class BaseResponse extends Response {
|
|||
$writer->startElement($k);
|
||||
$this->toXML($v->jsonSerialize(), $writer);
|
||||
$writer->endElement();
|
||||
} elseif ($v === null) {
|
||||
$writer->writeElement($k);
|
||||
} else {
|
||||
$writer->writeElement($k, $v);
|
||||
$writer->writeElement($k, (string)$v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue