File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -594,11 +594,13 @@ protected function validateRequest(array $segments): array
594594 // is found or when such a directory doesn't exist
595595 while ($ c -- > 0 )
596596 {
597- $ test = $ this ->directory . ucfirst ($ this ->translateURIDashes === true ? str_replace ('- ' , '_ ' , $ segments [0 ]) : $ segments [0 ]);
597+ $ segmentConvert = ucfirst ($ this ->translateURIDashes === true ? str_replace ('- ' , '_ ' , $ segments [0 ]) : $ segments [0 ]);
598+ $ test = APPPATH . 'Controllers/ ' . $ this ->directory . $ segmentConvert ;
598599
599- if (! is_file (APPPATH . ' Controllers/ ' . $ test . '.php ' ) && $ directoryOverride === false && is_dir (APPPATH . ' Controllers/ ' . $ this -> directory . ucfirst ( $ segments [ 0 ]) ))
600+ if (! is_file ($ test . '.php ' ) && $ directoryOverride === false && is_dir ($ test ))
600601 {
601- $ this ->setDirectory (array_shift ($ segments ), true );
602+ $ this ->setDirectory ($ segmentConvert , true );
603+ array_shift ($ segments );
602604 continue ;
603605 }
604606
You can’t perform that action at this time.
0 commit comments