File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function reload()
5959
6060 self ::$ exceptionlevel = 2 ;
6161
62- if (false === File::exists (INPHINIT_PATH . $ this ->path )) {
62+ if (false === \ Inphinit \ File::exists (INPHINIT_PATH . $ this ->path )) {
6363 throw new Exception ('File not found ' . $ this ->path , $ level );
6464 }
6565
Original file line number Diff line number Diff line change @@ -28,12 +28,18 @@ function UtilsCaseSensitivePath($path)
2828 */
2929function UtilsSandboxLoader ($ utilsSandBoxPath , array $ utilsSandBoxData = array ())
3030{
31+ $ utilsSandBoxPath = INPHINIT_PATH . $ utilsSandBoxPath ;
32+
33+ if (UtilsCaseSensitivePath ($ utilsSandBoxPath ) === false ) {
34+ return false ;
35+ }
36+
3137 if (empty ($ utilsSandBoxData ) === false ) {
3238 extract ($ utilsSandBoxData , EXTR_SKIP );
3339 $ utilsSandBoxData = null ;
3440 }
3541
36- return include INPHINIT_PATH . $ utilsSandBoxPath ;
42+ return include $ utilsSandBoxPath ;
3743}
3844
3945/**
@@ -198,7 +204,7 @@ function UtilsConfig()
198204 define ('REQUEST_TIME ' , time ());
199205 define ('EOL ' , chr (10 ));
200206
201- foreach (\ UtilsSandboxLoader ('application/Config/config.php ' ) as $ key => $ value ) {
207+ foreach (UtilsSandboxLoader ('application/Config/config.php ' ) as $ key => $ value ) {
202208 App::env ($ key , $ value );
203209 }
204210
You can’t perform that action at this time.
0 commit comments