Changeset 2a5d02a in github
- Timestamp:
- Jul 21, 2009 12:13:42 PM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- a0c4cbe
- Parents:
- 5499336
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/app.js (modified) (1 diff)
-
program/steps/settings/delete_identity.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r93af155 r2a5d02a 4 4 - Fix import of vCard entries with params (#1485453) 5 5 - Fix HTML messages output with empty block elements (#1485974) 6 - Use request tokens to protect POST requests from CSFR 6 7 - Added hook when killing a session 7 8 - Added hook to write_log function (#1485971) -
program/js/app.js
r5499336 r2a5d02a 2970 2970 id = this.env.iid ? this.env.iid : selection[0]; 2971 2971 2972 // if (this.env.framed && id) 2973 this.goto_url('delete-identity', '_iid='+id, true); 2972 // append token to request 2973 this.goto_url('delete-identity', '_iid='+id+'&_token='+this.env.request_token, true); 2974 2974 2975 return true; 2975 2976 }; -
program/steps/settings/delete_identity.inc
r69f18a09 r2a5d02a 6 6 | | 7 7 | This file is part of the RoundCube Webmail client | 8 | Copyright (C) 2005-200 7, RoundCube Dev. - Switzerland |8 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland | 9 9 | Licensed under the GNU GPL | 10 10 | | … … 20 20 */ 21 21 22 if (($ids = get_input_value('_iid', RCUBE_INPUT_GET)) && preg_match('/^[0-9]+(,[0-9]+)*$/', $ids)) 22 $iid = get_input_value('_iid', RCUBE_INPUT_GPC); 23 24 // check request token 25 if (!$OUTPUT->ajax_call && !$RCMAIL->check_request(RCUBE_INPUT_GPC)) { 26 $OUTPUT->show_message('invalidrequest', 'error'); 27 rcmail_overwrite_action('identities'); 28 return; 29 } 30 31 if ($iid && preg_match('/^[0-9]+(,[0-9]+)*$/', $iid)) 23 32 { 24 $plugin = $RCMAIL->plugins->exec_hook('delete_identity', array('id' => $i ds));33 $plugin = $RCMAIL->plugins->exec_hook('delete_identity', array('id' => $iid)); 25 34 26 if (!$plugin['abort'] && $USER->delete_identity($i ds)) {35 if (!$plugin['abort'] && $USER->delete_identity($iid)) { 27 36 $OUTPUT->show_message('deletedsuccessfully', 'confirmation', null, false); 28 37 }
Note: See TracChangeset
for help on using the changeset viewer.
