maxcountryman / flask-seasurf

SeaSurf is a Flask extension for preventing cross-site request forgery (CSRF).
http://readthedocs.org/docs/flask-seasurf/
Other
190 stars 49 forks source link

Fixed `exempt` and `include` decorators when using app factories. #12

Closed jpvanhal closed 12 years ago

jpvanhal commented 12 years ago

When using app factories, SeaSurf.init_app has not yet been called when the exempt or include decorator is applied to a view and an AttributeError is raised. Initializing _exempt_views and _include_views in SeaSurf.__init__ fixes the issue.

maxcountryman commented 12 years ago

Thanks! :)