mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正路由无法区分 hello 和 hello/
修正路由无法区分 hello 和 hello/,这应该是两个地址,一个是文件,一个是路径
This commit is contained in:
@@ -324,7 +324,7 @@ class Request
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->pathinfo = empty($_SERVER['PATH_INFO']) ? '/' : trim($_SERVER['PATH_INFO'], '/');
|
$this->pathinfo = empty($_SERVER['PATH_INFO']) ? '/' : ltrim($_SERVER['PATH_INFO'], '/');
|
||||||
}
|
}
|
||||||
return $this->pathinfo;
|
return $this->pathinfo;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user