Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports
| | |
| | | if (!keys.length) |
| | | return; |
| | | |
| | | this.goto_url('plugin.enigmakeys', {_a: 'export', _keys: keys}); |
| | | this.goto_url('plugin.enigmakeys', {_a: 'export', _keys: keys}, false, true); |
| | | }; |
| | | |
| | | // Submit key(s) import form |
| | |
| | | */ |
| | | private function key_export() |
| | | { |
| | | $this->rc->request_security_check(rcube_utils::INPUT_GET); |
| | | |
| | | $keys = rcube_utils::get_input_value('_keys', rcube_utils::INPUT_GPC); |
| | | $engine = $this->enigma->load_engine(); |
| | | $list = $keys == '*' ? $engine->list_keys() : explode(',', $keys); |
| | |
| | | } |
| | | } |
| | | else if ($action == 'setget') { |
| | | $this->rc->request_security_check(rcube_utils::INPUT_GET); |
| | | |
| | | $script_name = rcube_utils::get_input_value('_set', rcube_utils::INPUT_GPC, true); |
| | | $script = $this->sieve->get_script($script_name); |
| | | |
| | |
| | | var id = this.filtersets_list.get_single_selection(), |
| | | script = this.env.filtersets[id]; |
| | | |
| | | location.href = this.env.comm_path+'&_action=plugin.managesieve-action&_act=setget&_set='+urlencode(script); |
| | | this.goto_url('plugin.managesieve-action', {_act: 'setget', _set: script}, false, true); |
| | | }; |
| | | |
| | | // Set activate/deactivate request |
| | |
| | | |
| | | case 'export': |
| | | if (this.contact_list.rowcount > 0) { |
| | | this.goto_url('export', { _source: this.env.source, _gid: this.env.group, _search: this.env.search_request }); |
| | | this.goto_url('export', { _source: this.env.source, _gid: this.env.group, _search: this.env.search_request }, false, true); |
| | | } |
| | | break; |
| | | |
| | | case 'export-selected': |
| | | if (this.contact_list.rowcount > 0) { |
| | | this.goto_url('export', { _source: this.env.source, _gid: this.env.group, _cid: this.contact_list.get_selection().join(',') }); |
| | | this.goto_url('export', { _source: this.env.source, _gid: this.env.group, _cid: this.contact_list.get_selection().join(',') }, false, true); |
| | | } |
| | | break; |
| | | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | $RCMAIL->request_security_check(rcube_utils::INPUT_GET); |
| | | |
| | | // Use search result |
| | | if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search']])) { |
| | | $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); |