mirror of
https://github.com/typemill/typemill.git
synced 2025-08-08 23:26:34 +02:00
Version 1.4.6: Change content, CSRF-notification, fix blox editor, alert for raw editor, cyanine optimizations
This commit is contained in:
@@ -210,7 +210,12 @@ foreach($session_segments as $segment)
|
||||
{
|
||||
$guard = new \Slim\Csrf\Guard();
|
||||
$guard->setPersistentTokenMode(true);
|
||||
|
||||
$guard->setfailurecallable(function ($request, $response, $next)
|
||||
{
|
||||
$request = $request->withattribute("csrf_result", false);
|
||||
return $next($request, $response);
|
||||
});
|
||||
|
||||
return $guard;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user