mirror of https://github.com/MISP/MISP
45 lines
1.6 KiB
PHP
Executable File
45 lines
1.6 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
|
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
*
|
|
* Licensed under The MIT License
|
|
* For full copyright and license information, please see the LICENSE.txt
|
|
* Redistributions of files must retain the above copyright notice.
|
|
*
|
|
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
|
* @package app.View.Errors
|
|
* @since CakePHP(tm) v 0.10.0.1076
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
*/
|
|
if ($message !== 'csrf'):
|
|
?>
|
|
<h2><?php echo $message; ?></h2>
|
|
<p class="error">
|
|
<strong><?php echo __d('cake', 'Error'); ?>: </strong>
|
|
<?php printf(
|
|
__d('cake', 'The requested address %s was not found on this server.'),
|
|
"<strong>'{$url}'</strong>"
|
|
); ?>
|
|
</p>
|
|
<?php
|
|
if (Configure::read('debug') > 0):
|
|
echo $this->element('exception_stack_trace');
|
|
endif;
|
|
|
|
else:
|
|
?>
|
|
<h2>You have tripped the cross-site request forgery protection of MISP</h2>
|
|
<p class="error">
|
|
<strong>CSRF error:</strong>
|
|
This happens usually when you try to resubmit the same form with invalidated CSRF tokens or you had a form open too long and the CSRF tokens simply expired. Just go back to the previous page and refresh the form (by reloading the same url) so that the tokens get refreshed.
|
|
</p>
|
|
<p>
|
|
Alternatively, click <a href="/">here</a> to continue to the start page.
|
|
</p>
|
|
<?php
|
|
if (Configure::read('debug') > 0):
|
|
echo $this->element('exception_stack_trace');
|
|
endif;
|
|
endif;
|