From 1a022c257ff8907582dd632b57d5e9e88b33a387 Mon Sep 17 00:00:00 2001 From: Twyco Date: Wed, 30 Sep 2026 11:53:42 +0200 Subject: [PATCH] fix --- .github/workflows/ci_cd.yml | 1 - tests/Unit/FilesystemPathSecurityTest.php | 39 ----------------------- 2 files changed, 40 deletions(-) delete mode 100644 tests/Unit/FilesystemPathSecurityTest.php diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 2f1da62..47d4e25 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -9,7 +9,6 @@ on: pull_request: branches: - main - - fix/dependency-cves permissions: contents: read diff --git a/tests/Unit/FilesystemPathSecurityTest.php b/tests/Unit/FilesystemPathSecurityTest.php deleted file mode 100644 index 9a5f891..0000000 --- a/tests/Unit/FilesystemPathSecurityTest.php +++ /dev/null @@ -1,39 +0,0 @@ -expectException(CorruptedPathDetected::class); - - (new WhitespacePathNormalizer)->normalizePath($path); - } - - /** - * @return array - */ - public static function corruptedPaths(): array - { - return [ - 'control character' => ["avatars/user\x00.svg"], - 'malformed UTF-8' => ["avatars/user\xFF.svg"], - 'control character hidden by malformed UTF-8' => ["avatars/user\xFF\x00.svg"], - ]; - } - - public function test_valid_unicode_paths_remain_supported(): void - { - $this->assertSame( - 'avatars/benützer.svg', - (new WhitespacePathNormalizer)->normalizePath('./avatars//benützer.svg'), - ); - } -}