mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 20:10:56 +00:00
fix #244
This commit is contained in:
parent
5d55ca19be
commit
e11c40eee4
@ -26,9 +26,11 @@ 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 {
|
||||||
if len(matches[0]) == len(router) {
|
if len(matches[0]) == len(router) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user