Optimize the formatting
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 20 Feb 2024 12:07:54 +0000 (13:07 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 23 Feb 2024 13:43:02 +0000 (14:43 +0100)
wcfsetup/install/files/lib/system/service/worker/Encoding.class.php

index 1b1c5400940a860a5f1d0a408305283b0e989686..8dd26a56cbaa9cf5f8a4d865affba25a0e1d2645 100644 (file)
@@ -66,9 +66,8 @@ enum Encoding
             \assert(\mb_strlen($context, '8bit') === 135);
 
             return \sprintf(
-                'Content-Encoding: %s%s%s',
+                "Content-Encoding: %s\x00%s",
                 $type,
-                "\x00",
                 Encryption::CURVE_ALGORITHM . $context
             );
         }