tp漏洞同步修复
parent
41eef2e7dd
commit
87e7d63c70
|
|
@ -60,7 +60,7 @@ class Url extends Dispatch
|
||||||
$controller = !empty($path) ? array_shift($path) : null;
|
$controller = !empty($path) ? array_shift($path) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($controller && !preg_match('/^[A-Za-z][\w|\.]*$/', $controller)) {
|
if ($controller && !preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) {
|
||||||
throw new HttpException(404, 'controller not exists:' . $controller);
|
throw new HttpException(404, 'controller not exists:' . $controller);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue