Skip to content

Commit 4a565c9

Browse files
committed
Revert run test
1 parent e380733 commit 4a565c9

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
@@ -3852,12 +3852,9 @@ private function validateAndProcess(bool $inRedirect): void
38523852
$key = $prefix . '_EXTERNAL';
38533853

38543854
if ($this->hasSection($key)) {
3855-
$dir = dirname($this->fileName);
38563855
// don't allow tests to retrieve files from anywhere but this subdirectory
3857-
//$fileName = $dir . '/' . trim(str_replace('..', '', $this->getSection($key)));
3858-
3859-
// Allow tests to retrieve files from parent directories
3860-
$fileName = $dir . '/' . trim($this->getSection($key));
3856+
$dir = dirname($this->fileName);
3857+
$fileName = $dir . '/' . trim(str_replace('..', '', $this->getSection($key)));
38613858

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

0 commit comments

Comments
 (0)