From 9479ac837609deaaf8ab707e42e4c575f2c7238d Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Sun, 15 Sep 2024 13:41:40 +0200 Subject: fix(dav): cast parameters to string Signed-off-by: Anna Larch --- apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/dav/lib') diff --git a/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php b/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php index 838c1fbb781..54818a890f3 100644 --- a/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php +++ b/apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php @@ -133,7 +133,7 @@ class AppleProvisioningPlugin extends ServerPlugin { $filename = $userId . '-' . AppleProvisioningNode::FILENAME; $xmlSkeleton = $this->getTemplate(); - $body = vsprintf($xmlSkeleton, array_map(function ($v) { + $body = vsprintf($xmlSkeleton, array_map(function (string $v) { return \htmlspecialchars($v, ENT_XML1, 'UTF-8'); }, [ $description, -- cgit v1.2.3