]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(dav): cast parameters to string backport/48030/stable30 48071/head
authorAnna Larch <anna@nextcloud.com>
Sun, 15 Sep 2024 11:41:40 +0000 (13:41 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 16 Sep 2024 09:11:00 +0000 (09:11 +0000)
Signed-off-by: Anna Larch <anna@nextcloud.com>
apps/dav/lib/Provisioning/Apple/AppleProvisioningPlugin.php

index 838c1fbb781a8531e8b8f3ff287b22fb5ec4b83c..54818a890f3937b9b0ffaab87a1b61c7f34ac445 100644 (file)
@@ -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,