From 7c95446d869d392f330f93cda8de91941c99d75b Mon Sep 17 00:00:00 2001 From: thomasb Date: Tue, 8 Feb 2011 08:13:06 +0000 Subject: Add optional referer check to prevent CSRF in GET requests git-svn-id: https://svn.roundcube.net/trunk@4503 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/utils/error.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/steps/utils') diff --git a/roundcubemail/program/steps/utils/error.inc b/roundcubemail/program/steps/utils/error.inc index 422827a23..8b0496911 100644 --- a/roundcubemail/program/steps/utils/error.inc +++ b/roundcubemail/program/steps/utils/error.inc @@ -5,7 +5,7 @@ | program/steps/utils/error.inc | | | | This file is part of the Roundcube Webmail client | - | Copyright (C) 2005-2010, The Roundcube Dev Team | + | Copyright (C) 2005-2011, The Roundcube Dev Team | | Licensed under the GNU GPL | | | | PURPOSE: | @@ -47,6 +47,13 @@ else if ($ERROR_CODE==401) { "Please contact your server-administrator."; } +// forbidden due to request check +else if ($ERROR_CODE==403) { + $__error_title = "REQUEST CHECK FAILED"; + $__error_text = "Access to this service was denied due to failing security checks!
\n". + "Please contact your server-administrator."; +} + // failed request (wrong step in URL) else if ($ERROR_CODE==404) { $__error_title = "REQUEST FAILED/FILE NOT FOUND"; -- cgit v1.2.3