Update uri.php
This commit is contained in:
parent
273e803288
commit
ebc5233e26
|
|
@ -46,7 +46,10 @@ if(!function_exists("read_route")) {
|
||||||
$request_uri = $_SERVER['REQUEST_URI'];
|
$request_uri = $_SERVER['REQUEST_URI'];
|
||||||
$d = explode("/index.php/", $request_uri);
|
$d = explode("/index.php/", $request_uri);
|
||||||
if(count($d) > 1 && $d[0] == "") {
|
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)) {
|
if(empty($route)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user