Update wcfsetup/install/files/lib/system/service/worker/Encryption.class.php
authorOlaf Braun <olaf_schmitz_1@t-online.de>
Mon, 19 Feb 2024 11:20:50 +0000 (12:20 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 23 Feb 2024 13:41:41 +0000 (14:41 +0100)
Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
wcfsetup/install/files/lib/system/service/worker/Encryption.class.php

index aae4195f2cf6d467ea8eeb55f148d1affed9c3e0..8446a78a4ede09924238086374662f60d62ada97 100644 (file)
@@ -170,7 +170,7 @@ final class Encryption
         string $newPublicKey
     ): string {
         if ($serviceWorker->contentEncoding === ServiceWorker::CONTENT_ENCODING_AESGCM) {
-            $info = "Content-Encoding: auth\0";
+            $info = "Content-Encoding: auth\x00";
         } elseif ($serviceWorker->contentEncoding === ServiceWorker::CONTENT_ENCODING_AES128GCM) {
             $info = "WebPush: info\0" . $userPublicKey . $newPublicKey;
         } else {