Skip to content

Commit e1dc48a

Browse files
Merge pull request #2353 from nextcloud/bump/lognormalizer
build(deps): bump nextcloud/lognormalizer from 3.0.0 to 3.0.1
2 parents 39ba442 + 179f20a commit e1dc48a

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"mexitek/phpcolors": "^1.0",
4040
"microsoft/azure-storage-blob": "^1.5.4",
4141
"mlocati/ip-lib": "^1.22",
42-
"nextcloud/lognormalizer": "^3.0.0",
42+
"nextcloud/lognormalizer": "^3.0.1",
4343
"pear/archive_tar": "^1.4.9",
4444
"pear/pear-core-minimal": "^1.10",
4545
"php-http/guzzle7-adapter": "^1.1.0",

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer/installed.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,17 +2277,17 @@
22772277
},
22782278
{
22792279
"name": "nextcloud/lognormalizer",
2280-
"version": "v3.0.0",
2281-
"version_normalized": "3.0.0.0",
2280+
"version": "v3.0.1",
2281+
"version_normalized": "3.0.1.0",
22822282
"source": {
22832283
"type": "git",
22842284
"url": "https://github.com/nextcloud/lognormalizer.git",
2285-
"reference": "9fbc308d900d0399298b0fa76123aa856e07ea1c"
2285+
"reference": "128aba2a22d6df0ec1a8c8eb071caadc1b0d992f"
22862286
},
22872287
"dist": {
22882288
"type": "zip",
2289-
"url": "https://api.github.com/repos/nextcloud/lognormalizer/zipball/9fbc308d900d0399298b0fa76123aa856e07ea1c",
2290-
"reference": "9fbc308d900d0399298b0fa76123aa856e07ea1c",
2289+
"url": "https://api.github.com/repos/nextcloud/lognormalizer/zipball/128aba2a22d6df0ec1a8c8eb071caadc1b0d992f",
2290+
"reference": "128aba2a22d6df0ec1a8c8eb071caadc1b0d992f",
22912291
"shasum": ""
22922292
},
22932293
"require": {
@@ -2298,9 +2298,9 @@
22982298
"nextcloud/coding-standard": "^1.4",
22992299
"phpunit/phpunit": "^10.5",
23002300
"symfony/polyfill-php85": "^1.33",
2301-
"vimeo/psalm": "^6.14"
2301+
"vimeo/psalm": "^6.15"
23022302
},
2303-
"time": "2025-12-17T14:56:48+00:00",
2303+
"time": "2026-03-12T13:59:12+00:00",
23042304
"type": "library",
23052305
"installation-source": "dist",
23062306
"autoload": {
@@ -2337,7 +2337,7 @@
23372337
],
23382338
"support": {
23392339
"issues": "https://github.com/nextcloud/lognormalizer/issues",
2340-
"source": "https://github.com/nextcloud/lognormalizer/tree/v3.0.0"
2340+
"source": "https://github.com/nextcloud/lognormalizer/tree/v3.0.1"
23412341
},
23422342
"install-path": "../nextcloud/lognormalizer"
23432343
},

composer/installed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@
308308
'dev_requirement' => false,
309309
),
310310
'nextcloud/lognormalizer' => array(
311-
'pretty_version' => 'v3.0.0',
312-
'version' => '3.0.0.0',
313-
'reference' => '9fbc308d900d0399298b0fa76123aa856e07ea1c',
311+
'pretty_version' => 'v3.0.1',
312+
'version' => '3.0.1.0',
313+
'reference' => '128aba2a22d6df0ec1a8c8eb071caadc1b0d992f',
314314
'type' => 'library',
315315
'install_path' => __DIR__ . '/../nextcloud/lognormalizer',
316316
'aliases' => array(),

nextcloud/lognormalizer/src/Normalizer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public function convertToString(mixed $data): ?string {
104104
$data = @json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PARTIAL_OUTPUT_ON_ERROR);
105105
// Removing null byte and double slashes from object properties
106106
$data = str_replace(['\\u0000', '\\\\'], ['', '\\'], $data);
107+
} else {
108+
// Removing null byte from strings
109+
$data = str_replace("\x00", '', $data);
107110
}
108111

109112
return $data;

0 commit comments

Comments
 (0)