Skip to content

Commit

Permalink
Scalate template path should be normalized
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Nov 24, 2013
1 parent 7352002 commit c4023d8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -243,7 +243,7 @@ trait ScalateSupport extends ScalatraKernel {
val finder = new TemplateFinder(templateEngine) {
override lazy val extensions = extensionSet
}
finder.findTemplate("/"+path) orElse
finder.findTemplate(("/"+path).replaceAll("//", "/")) orElse
finder.findTemplate("/%s/%s".format(path, defaultIndexName))
}

Expand Down

0 comments on commit c4023d8

Please sign in to comment.