Skip to content

Commit 60cf647

Browse files
committed
修正路由类的一处错误
1 parent 31826ed commit 60cf647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ThinkPHP/Library/Think/Route.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Route {
1717
// 路由检测
1818
public static function check(){
1919
$depr = C('URL_PATHINFO_DEPR');
20-
$regx = preg_replace('/.'.__EXT__.'$/i','',trim($_SERVER['PATH_INFO'],$depr));
20+
$regx = preg_replace('/\.'.__EXT__.'$/i','',trim($_SERVER['PATH_INFO'],$depr));
2121
// 分隔符替换 确保路由定义使用统一的分隔符
2222
if('/' != $depr){
2323
$regx = str_replace($depr,'/',$regx);

0 commit comments

Comments
 (0)