From 5499336feff22f682448dd99cc00a9b36701fcd1 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 21 Jul 2009 16:02:33 +0000 Subject: Use global request tokens and automatically protect all POST requests --- program/steps/addressbook/save.inc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'program/steps/addressbook/save.inc') diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc index 45cb6387e..639e0f2d1 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -5,7 +5,7 @@ | program/steps/addressbook/save.inc | | | | This file is part of the RoundCube Webmail client | - | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland | + | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland | | Licensed under the GNU GPL | | | | PURPOSE: | @@ -22,14 +22,6 @@ $cid = get_input_value('_cid', RCUBE_INPUT_POST); $return_action = empty($cid) ? 'add' : 'show'; -// check request token and exit if invalid -if (!$RCMAIL->check_request('save.'.intval($cid), RCUBE_INPUT_POST)) -{ - $OUTPUT->show_message('invalidrequest', 'error'); - rcmail_overwrite_action($return_action); - return; -} - // cannot edit record if ($CONTACTS->readonly) { -- cgit v1.2.3