Skip to content

Commit

Permalink
v2.10.11
Browse files Browse the repository at this point in the history
  • Loading branch information
billge1205 committed Jan 29, 2023
1 parent f5f5c89 commit df89c46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Biny

[![license](http://img.shields.io/badge/license-BSD3-blue.svg?style=flat)](https://github.com/tencent/biny/blob/master/LICENSE.TXT)
[![Release Version](https://img.shields.io/badge/release-2.10.10-red.svg)](https://github.com/tencent/biny/releases)
[![Release Version](https://img.shields.io/badge/release-2.10.11-red.svg)](https://github.com/tencent/biny/releases)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/tencent/biny/pulls)

Biny是一款高性能的轻量级PHP框架
Expand Down
4 changes: 2 additions & 2 deletions lib/business/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function getRouterInfo()
$pathRoot = substr($pathRoot, $len);
}

$path = $this->reRouter(rtrim($pathRoot, '/'));
$path = $this->reRouter(trim($pathRoot, '/'));
if ($path !== NULL){
$pathRoot = $path;
}
Expand Down Expand Up @@ -104,7 +104,7 @@ private function reRouter($url)
$matchs[2][] = '\/';
$matchs[2][] = '\.';
$key = str_replace($matchs[0], $matchs[2], $key);
if (preg_match('/'.$key.'$/', $url, $args)){
if (preg_match('/^'.$key.'$/', $url, $args)){
foreach ($matchs[1] as $key => $val){
self::$ARGS[$val] = $args[$key+1];
}
Expand Down

0 comments on commit df89c46

Please sign in to comment.