Skip to content

Commit a442f46

Browse files
committed
Revert run test
1 parent 8013180 commit a442f46

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

run-tests.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3907,12 +3907,9 @@ private function validateAndProcess(bool $inRedirect): void
39073907
$key = $prefix . '_EXTERNAL';
39083908

39093909
if ($this->hasSection($key)) {
3910-
$dir = dirname($this->fileName);
39113910
// don't allow tests to retrieve files from anywhere but this subdirectory
3912-
//$fileName = $dir . '/' . trim(str_replace('..', '', $this->getSection($key)));
3913-
3914-
// Allow tests to retrieve files from parent directories
3915-
$fileName = $dir . '/' . trim($this->getSection($key));
3911+
$dir = dirname($this->fileName);
3912+
$fileName = $dir . '/' . trim(str_replace('..', '', $this->getSection($key)));
39163913

39173914
if (file_exists($fileName)) {
39183915
$this->sections[$prefix] = file_get_contents($fileName);

0 commit comments

Comments
 (0)