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

Use view.__module__ and view.__name__ instead of view.__hash__ for exempt and include decorators #31

Closed alanhamlett closed 11 years ago

alanhamlett commented 11 years ago

Using view_func like if view_func in self._exempt_views: Causes the compare to return False if the hash for a view has changed.

Instead, use the view's location and name.