mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
Merge branch 'master' of https://github.com/top-think/think
This commit is contained in:
@@ -288,6 +288,9 @@ class Input
|
|||||||
*/
|
*/
|
||||||
private static function regexFilter($input, $filter)
|
private static function regexFilter($input, $filter)
|
||||||
{
|
{
|
||||||
|
if(empty($filter_)){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
$begin = $filter[0];
|
$begin = $filter[0];
|
||||||
$end = $filter[strlen($filter) - 1];
|
$end = $filter[strlen($filter) - 1];
|
||||||
if (is_array($input)) {
|
if (is_array($input)) {
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ class Route
|
|||||||
'POST' => [],
|
'POST' => [],
|
||||||
'PUT' => [],
|
'PUT' => [],
|
||||||
'DELETE' => [],
|
'DELETE' => [],
|
||||||
|
'HEAD' => [],
|
||||||
'*' => [],
|
'*' => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user