Plugin Directory

Changeset 2178792


Ignore:
Timestamp:
10/23/2019 06:57:06 PM (6 years ago)
Author:
textp2p
Message:

New code added

Location:
textp2p-texting-widget/trunk/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • textp2p-texting-widget/trunk/inc/admin/im-textp2p-options.php

    r2175790 r2178792  
    44   
    55    $options = get_option('imtextp2p_options');
    6 
     6      $_POST = array_map( 'stripslashes_deep', $_POST );
    77    if (isset($_POST['form_submit'])) {
    88   
    9        
     9           // $options['im_chat_box_title'] =  $_POST['im_chat_box_title'];
    1010        /*General and View Options*/
    1111        if (array_key_exists('im_chat_box_title', $_POST) && filter_var($_POST['im_chat_box_title'], FILTER_SANITIZE_STRING)) {
    12              $options['im_chat_box_title'] = sanitize_text_field( $_POST['im_chat_box_title']);
     12             $options['im_chat_box_title'] =  $_POST['im_chat_box_title'];
    1313        }else{
    1414             $options['im_chat_box_title'] = 'Text Us!';
  • textp2p-texting-widget/trunk/inc/im-textp2p-functions.php

    r2175790 r2178792  
    218218    $imSecretkey = $options['im_secretkey'];
    219219    $imApiListID = $options['im_api_list_id'];
    220    
     220    $_POST = array_map( 'stripslashes_deep', $_POST );
    221221    $idata = array( 'AUTH_USERNAME' => $imUsername, 'AUTH_SECRET' => $imSecretkey , 'listid' => $imApiListID, 'PHONE' => $_POST['im_phone'], 'FNAME' => $_POST['im_first_name'], 'LNAME' => $_POST['im_last_name'], 'EMAIL' => $_POST['im_email'], 'MSG' => $_POST['im_message'] );
    222222    $response = wp_remote_post( IM_TEXTP2P_CONTACT_API, array( 'body' => $idata ) );
Note: See TracChangeset for help on using the changeset viewer.