Permalink
Browse files

Update flask/app.py

  • Loading branch information...
1 parent a3cb2a3 commit 36194697ae8371f42d3041c1f89b6f2e77c34826 @ekoka committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 flask/app.py
View
2 flask/app.py
@@ -1468,7 +1468,7 @@ def inject_url_defaults(self, endpoint, values):
"""
funcs = self.url_default_functions.get(None, ())
if '.' in endpoint:
- bp = endpoint.split('.', 1)[0]
+ bp = endpoint.rsplit('.', 1)[0]
funcs = chain(funcs, self.url_default_functions.get(bp, ()))
for func in funcs:
func(endpoint, values)

0 comments on commit 3619469

Please sign in to comment.