nextcloud/lib/private/AppFramework/Middleware/Security/Exceptions/CrossSiteRequestForgeryException.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
622 B
PHP
Raw Permalink Normal View History

2013-08-17 05:16:48 -04:00
<?php
2013-08-17 05:16:48 -04:00
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
2013-08-17 05:16:48 -04:00
*/
namespace OC\AppFramework\Middleware\Security\Exceptions;
use OCP\AppFramework\Http;
2013-08-17 05:16:48 -04:00
/**
* Class CrossSiteRequestForgeryException is thrown when a CSRF exception has
* been encountered.
*
* @package OC\AppFramework\Middleware\Security\Exceptions
2013-08-17 05:16:48 -04:00
*/
class CrossSiteRequestForgeryException extends SecurityException {
public function __construct() {
parent::__construct('CSRF check failed', Http::STATUS_PRECONDITION_FAILED);
2013-08-17 05:16:48 -04:00
}
}