Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #417 from tarruda/master

Fixed assumption made on session implementations
  • Loading branch information...
commit 71a97662663babca96365e01bc2017f9f178c95b 2 parents 9ab41ed + 8445f0d
@rduplain rduplain authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 flask/helpers.py
View
4 flask/helpers.py
@@ -283,7 +283,9 @@ def flash(message, category='message'):
messages and ``'warning'`` for warnings. However any
kind of string can be used as category.
"""
- session.setdefault('_flashes', []).append((category, message))
+ flashes = session.get('_flashes', [])
+ flashes.append((category, message))
+ session['_flashes'] = flashes
def get_flashed_messages(with_categories=False, category_filter=[]):
Please sign in to comment.
Something went wrong with that request. Please try again.