mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
SECURITY: correct our CSRF implementation to be much more aggressive
This commit is contained in:
parent
4a20d09523
commit
aa6c92922d
8 changed files with 58 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue