mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:51:14 +08:00
SECURITY: correct our CSRF implementation to be much more aggressive
This commit is contained in:
@ -20,6 +20,9 @@ module Discourse
|
||||
# When a setting is missing
|
||||
class SiteSettingMissing < Exception; end
|
||||
|
||||
# Cross site request forgery
|
||||
class CSRF < Exception; end
|
||||
|
||||
def self.cache
|
||||
@cache ||= Cache.new
|
||||
end
|
||||
|
Reference in New Issue
Block a user