mirror of
https://github.com/typecho/typecho.git
synced 2025-01-18 04:58:20 +01:00
fix #1139
This commit is contained in:
parent
c84fa39c4f
commit
09a320bf5d
@ -44,13 +44,13 @@ class Typecho_Router
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param string $pathInfo 全路径
|
||||
* @param string|null $pathInfo 全路径
|
||||
* @param mixed $parameter 输入参数
|
||||
*
|
||||
* @return mixed
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function match(string $pathInfo, $parameter = null)
|
||||
public static function match(?string $pathInfo, $parameter = null)
|
||||
{
|
||||
foreach (self::$_routingTable as $key => $route) {
|
||||
if (preg_match($route['regx'], $pathInfo, $matches)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user