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 @@ -3852,12 +3852,9 @@ private function validateAndProcess(bool $inRedirect): void
3852
3852
$ key = $ prefix . '_EXTERNAL ' ;
3853
3853
3854
3854
if ($ this ->hasSection ($ key )) {
3855
- $ dir = dirname ($ this ->fileName );
3856
3855
// 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 )));
3861
3858
3862
3859
if (file_exists ($ fileName )) {
3863
3860
$ this ->sections [$ prefix ] = file_get_contents ($ fileName );
You can’t perform that action at this time.
0 commit comments