File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments