Skip to content

Commit

Permalink
Fix for double slashes in static file paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdoms committed Sep 14, 2020
1 parent c17fe45 commit 83b188d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class StaticController(BaseController):
async def get(self, *args):

path = self.request.path
filename = "static/" + path + ".html"
assert path.startswith('/')
filename = "static" + path + ".html"
page_title = path.replace("/", " ").strip().title()

self.renderTemplate(filename, page_title=page_title)
Expand Down

0 comments on commit 83b188d

Please sign in to comment.