mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 10:25:27 +00:00
@@ -796,8 +796,12 @@ static SoProduct *commonProduct = nil;
|
||||
return [super performActionNamed: _actionName];
|
||||
}
|
||||
|
||||
// We grab the X-XSRF-TOKEN header
|
||||
// We grab the X-XSRF-TOKEN from the header or the URL
|
||||
token = [[context request] headerForKey: @"X-XSRF-TOKEN"];
|
||||
if (![token length])
|
||||
{
|
||||
token = [[context request] formValueForKey: @"X-XSRF-TOKEN"];
|
||||
}
|
||||
|
||||
// We compare it with our session key
|
||||
value = [[context request]
|
||||
|
||||
Reference in New Issue
Block a user