We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8013180 commit a442f46Copy full SHA for a442f46
run-tests.php
@@ -3907,12 +3907,9 @@ private function validateAndProcess(bool $inRedirect): void
3907
$key = $prefix . '_EXTERNAL';
3908
3909
if ($this->hasSection($key)) {
3910
- $dir = dirname($this->fileName);
3911
// 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));
+ $dir = dirname($this->fileName);
+ $fileName = $dir . '/' . trim(str_replace('..', '', $this->getSection($key)));
3916
3917
if (file_exists($fileName)) {
3918
$this->sections[$prefix] = file_get_contents($fileName);
0 commit comments