| | |
| | | |
| | | $REMOTE_REQUEST = TRUE; |
| | | |
| | | if ($_GET['_address']) |
| | | if (!empty($_GET['_address'])) |
| | | { |
| | | $contact_arr = $IMAP->decode_address_list($_GET['_address']); |
| | | $contact_arr = $IMAP->decode_address_list(get_input_value('_address', RCUBE_INPUT_GET, TRUE)); |
| | | if (sizeof($contact_arr)) |
| | | { |
| | | $contact = $contact_arr[1]; |
| | |
| | | { |
| | | $DB->query("INSERT INTO ".get_table_name('contacts')." |
| | | (user_id, changed, del, name, email) |
| | | VALUES (?, now(), 0, ?, ?)", |
| | | VALUES (?, ".$DB->now().", 0, ?, ?)", |
| | | $_SESSION['user_id'], |
| | | $contact['name'], |
| | | $contact['mailto']); |