We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31826ed commit 60cf647Copy full SHA for 60cf647
ThinkPHP/Library/Think/Route.class.php
@@ -17,7 +17,7 @@ class Route {
17
// 路由检测
18
public static function check(){
19
$depr = C('URL_PATHINFO_DEPR');
20
- $regx = preg_replace('/.'.__EXT__.'$/i','',trim($_SERVER['PATH_INFO'],$depr));
+ $regx = preg_replace('/\.'.__EXT__.'$/i','',trim($_SERVER['PATH_INFO'],$depr));
21
// 分隔符替换 确保路由定义使用统一的分隔符
22
if('/' != $depr){
23
$regx = str_replace($depr,'/',$regx);
0 commit comments