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'), - ); - } -}