diff options
author | thomascube <thomas@roundcube.net> | 2009-07-21 16:02:33 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-07-21 16:02:33 +0000 |
commit | 5499336feff22f682448dd99cc00a9b36701fcd1 (patch) | |
tree | 84c0fcf73be4f5c51f58c9656aaaefecd3530d9d /program/steps/settings/save_prefs.inc | |
parent | 61e96cd1f9b32345fd15ae826674f38f0495baa3 (diff) |
Use global request tokens and automatically protect all POST requests
Diffstat (limited to 'program/steps/settings/save_prefs.inc')
-rw-r--r-- | program/steps/settings/save_prefs.inc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc index 7444a8b53..8430ffd88 100644 --- a/program/steps/settings/save_prefs.inc +++ b/program/steps/settings/save_prefs.inc @@ -5,7 +5,7 @@ | program/steps/settings/save_prefs.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: | @@ -19,13 +19,6 @@ */ -// check request token and exit if invalid -if (!$RCMAIL->check_request('save-prefs', RCUBE_INPUT_POST)) { - $OUTPUT->show_message('invalidrequest', 'error'); - rcmail_overwrite_action('preferences'); - return; -} - $a_user_prefs = array( 'language' => isset($_POST['_language']) ? get_input_value('_language', RCUBE_INPUT_POST) : $CONFIG['language'], 'timezone' => isset($_POST['_timezone']) ? (is_numeric($_POST['_timezone']) ? floatval($_POST['_timezone']) : get_input_value('_timezone', RCUBE_INPUT_POST)) : $CONFIG['timezone'], |