mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 08:30:54 +00:00
fix #244
This commit is contained in:
parent
5d55ca19be
commit
e11c40eee4
@ -26,8 +26,10 @@ func (mr *FilterRouter) ValidRouter(router string) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
matches := mr.regex.FindStringSubmatch(router)
|
matches := mr.regex.FindStringSubmatch(router)
|
||||||
if len(matches[0]) == len(router) {
|
if len(matches) > 0 {
|
||||||
return true
|
if len(matches[0]) == len(router) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user