Skip to content

Commit 1137f82

Browse files
committed
fix: use default permissions for test temporary directories
Changed mkdir() call to use default permissions instead of 0777. The 0777 mode made directories world-writable, which is a security concern. Now using system umask defaults (typically 0755 or 0700).
1 parent 2db1176 commit 1137f82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/src/Functional/SplitCommandTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function setUp(): void
2121

2222
// Create a temporary directory for test outputs
2323
$this->tempDir = sys_get_temp_dir() . '/har_test_' . uniqid();
24-
mkdir($this->tempDir, 0777, true);
24+
mkdir($this->tempDir, recursive: true);
2525

2626
// Set up the command tester
2727
$command = new SplitCommand();

0 commit comments

Comments
 (0)