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
3907
3907
$ key = $ prefix . '_EXTERNAL ' ;
3908
3908
3909
3909
if ($ this ->hasSection ($ key )) {
3910
- $ dir = dirname ($ this ->fileName );
3911
3910
// 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 )));
3916
3913
3917
3914
if (file_exists ($ fileName )) {
3918
3915
$ this ->sections [$ prefix ] = file_get_contents ($ fileName );
You can’t perform that action at this time.
0 commit comments