Update uri.php

This commit is contained in:
Namhyeon Go 2019-02-23 02:51:33 +09:00 committed by GitHub
parent 273e803288
commit ebc5233e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,10 @@ if(!function_exists("read_route")) {
$request_uri = $_SERVER['REQUEST_URI'];
$d = explode("/index.php/", $request_uri);
if(count($d) > 1 && $d[0] == "") {
$route = str_replace("../", "", $d[1]);
$pos = strpos($d[1], "/");
if($pos !== false) {
$route = substr($d[1], 0, $pos);
}
}
if(empty($route)) {