(refs #1695)Fix plugin controllers mapping

This commit is contained in:
Naoki Takezoe
2017-09-04 18:46:07 +09:00
parent eeabbfd599
commit e83b017ef2

View File

@@ -24,7 +24,7 @@ class PluginControllerFilter extends Filter {
val controller = PluginRegistry().getControllers().filter { case (_, path) =>
val requestUri = request.asInstanceOf[HttpServletRequest].getRequestURI
val start = path.replaceFirst("/\\*$", "/")
path.endsWith("/*") && (requestUri + "/").startsWith(start)
(requestUri + "/").startsWith(start)
}
val filterChainWrapper = controller.foldLeft(chain){ case (chain, (controller, _)) =>