From e889b856bc5da82205b882be59bee0a692a9c91a Mon Sep 17 00:00:00 2001 From: Thilina Date: Sun, 27 Jun 2021 16:51:53 +0200 Subject: [PATCH] Fix extensions loading issue --- app/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/index.php b/app/index.php index c4348732..846160f4 100755 --- a/app/index.php +++ b/app/index.php @@ -5,7 +5,7 @@ if(!file_exists('config.php')){ } include ('config.php'); if(!isset($_REQUEST['g']) || !isset($_REQUEST['n'])){ -header("Location:".CLIENT_BASE_URL."login.php"); +header("Location:".CLIENT_BASE_URL."login.php"); exit(); } $group = $_REQUEST['g']; @@ -14,7 +14,7 @@ $name= $_REQUEST['n']; $groups = array('admin','modules'); if($group == 'admin' || $group == 'modules'){ - $name = str_replace("..","",$name); + $name = str_replace("..","",$name); $name = str_replace("/","",$name); include APP_BASE_PATH.'/'.$group.'/'.$name.'/index.php'; }else if ($group == 'extension'){ @@ -23,7 +23,7 @@ if($group == 'admin' || $group == 'modules'){ $moduleName = $name; $moduleGroup = 'extensions'; $extensionIndex = APP_BASE_PATH.'/../extensions/'.$name.'/web/index.php'; - include $extensionIndex; + include APP_BASE_PATH.'extensions/wrapper.php'; }else{ exit(); }