mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-22 07:14:21 +00:00
(feat) added AngularJS's XSRF support (#3246)
This commit is contained in:
1 parent
2da7a04bac
commit
582baf2960
40 files changed
+224
-129
No files matched your search
@@ -65,6 +65,7 @@
|
||||
|
||||
- (BOOL) uixDebugEnabled;
|
||||
- (BOOL) easDebugEnabled;
|
||||
- (BOOL) xsrfValidationEnabled;
|
||||
|
||||
- (NSString *) pageTitle;
|
||||
- (NSString *) helpURL;
|
||||
|
||||
@@ -430,6 +430,18 @@ _injectConfigurationFromFile (NSMutableDictionary *defaultsDict,
|
||||
return [self boolForKey: @"SOGoEASDebugEnabled"];
|
||||
}
|
||||
|
||||
- (BOOL) xsrfValidationEnabled
|
||||
{
|
||||
id o;
|
||||
|
||||
if (!(o = [self objectForKey: @"SOGoXSRFValidationEnabled"]))
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
return [o boolValue];
|
||||
}
|
||||
|
||||
- (NSString *) pageTitle
|
||||
{
|
||||
return [self stringForKey: @"SOGoPageTitle"];
|
||||
|
||||
Reference in new issue
Block a user