Plugin Directory

Changeset 2723452


Ignore:
Timestamp:
05/13/2022 04:32:28 PM (4 years ago)
Author:
mmuro
Message:

Update tagged copy of new changes

Location:
visual-form-builder/tags/3.0.9/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • visual-form-builder/tags/3.0.9/admin/class-export.php

    r2722102 r2723452  
    55 */
    66class Visual_Form_Builder_Export {
    7  
     7
    88  /**
    99   * Default delimiter for CSV and Tab export
     
    106106          ?>
    107107          </select>
    108        
     108
    109109        <div class="vfb-export-entries-options">
    110110          <h3><?php _e( 'Customize your export', 'visual-form-builder' ); ?></h3>
     
    205205        if ( $end_date )
    206206          $where .= $wpdb->prepare( " AND date_submitted < %s", date( 'Y-m-d', strtotime( '+1 month', strtotime( $end_date ) ) ) );
    207        
     207
    208208        $title = $wpdb->get_var( null, 1 );
    209209
     
    335335    if ( 0 == $entries_count )
    336336      return _e( 'No entries.', 'visual-form-builder' );
    337    
     337
    338338    if ( is_array( $entries ) && !empty( $entries ) ) {
    339339      $columns = $this->get_cols( $entries );
     
    358358
    359359        ?>
    360         <label for="vfb-export-fields-val-<?php echo $id; ?>">
    361           <input 
    362             name="settings[fields][<?php echo $id; ?>]"
    363             class="vfb-export-fields-vals" 
    364             id="vfb-export-fields-val-<?php echo $id; ?>"
    365             type="checkbox" 
    366             value="<?php echo esc_attr( $value ); ?>" 
     360        <label for="vfb-export-fields-val-<?php echo esc_attr( $id ); ?>">
     361          <input
     362            name="settings[fields][<?php echo esc_attr( $id ); ?>]"
     363            class="vfb-export-fields-vals"
     364            id="vfb-export-fields-val-<?php echo esc_attr( $id ); ?>"
     365            type="checkbox"
     366            value="<?php echo esc_attr( $value ); ?>"
    367367            <?php echo $selected; ?>
    368           /> 
     368          />
    369369          <?php echo esc_html( $search ); ?>
    370370        </label><br>
  • visual-form-builder/tags/3.0.9/admin/class-forms-edit.php

    r2722137 r2723452  
    7373          echo '<span class="subtitle">' . sprintf( __( 'Search results for "%s"' , 'visual-form-builder'), esc_html( $_POST['s'] ) );
    7474
    75         $form_nav_selected_id = isset( $_GET['form'] ) ? $_GET['form'] : '0';
     75        $form_nav_selected_id = isset( $_GET['form'] ) ? absint( $_GET['form'] ) : '0';
    7676      ?>
    7777      </h1>
     
    9090                  <form id="vfb-form-items" method="post" action="">
    9191                    <input name="action" type="hidden" value="create_field" />
    92                     <input name="form_id" type="hidden" value="<?php echo $form_nav_selected_id; ?>" />
     92                    <input name="form_id" type="hidden" value="<?php echo esc_attr( $form_nav_selected_id ); ?>" />
    9393                    <?php
    9494                      wp_nonce_field( 'create-field-' . $form_nav_selected_id );
     
    107107                  <p>
    108108                    <?php _e( 'Shortcode', 'visual-form-builder' ); ?>
    109                     <input value="[vfb id=<?php echo $form_nav_selected_id; ?>]" readonly="readonly" />
     109                    <input value="[vfb id=<?php echo esc_attr( $form_nav_selected_id ); ?>]" readonly="readonly" />
    110110                  </p>
    111111                </div> <!-- .vfb-accordion-section-content -->
  • visual-form-builder/tags/3.0.9/admin/class-page-settings.php

    r2722102 r2723452  
    3636            ?>
    3737              <label for="vfb-settings-<?php echo $key; ?>">
    38                 <input type="checkbox" name="vfb-settings[<?php echo $key; ?>]" id="vfb-settings-<?php echo $key; ?>" value="1" <?php checked( $vfb_settings[ $key ], 1 ); ?> /> <?php echo $title; ?>
     38                <input type="checkbox" name="vfb-settings[<?php echo $key; ?>]" id="vfb-settings-<?php echo $key; ?>" value="1" <?php checked( $vfb_settings[ $key ], 1 ); ?> /> <?php echo esc_html( $title ); ?>
    3939              </label>
    4040              <br>
     
    5757                $vfb_settings[ $key ] = isset( $vfb_settings[ $key ] ) ? $vfb_settings[ $key ] : '';
    5858            ?>
    59               <label for="vfb-settings-<?php echo $key; ?>">
    60                 <input type="checkbox" name="vfb-settings[<?php echo $key; ?>]" id="vfb-settings-<?php echo $key; ?>" value="1" <?php checked( $vfb_settings[ $key ], 1 ); ?> /> <?php echo $title; ?>
     59              <label for="vfb-settings-<?php echo esc_attr( $key ); ?>">
     60                <input type="checkbox" name="vfb-settings[<?php echo esc_attr( $key ); ?>]" id="vfb-settings-<?php echo esc_attr( $key ); ?>" value="1" <?php checked( $vfb_settings[ $key ], 1 ); ?> /> <?php echo esc_html( $title ); ?>
    6161              </label>
    6262              <br>
     
    9292          <td>
    9393            <?php $vfb_settings['spam-points'] = isset( $vfb_settings['spam-points'] ) ? $vfb_settings['spam-points'] : '4'; ?>
    94             <input type="number" min="1" name="vfb-settings[spam-points]" id="vfb-settings-spam-points" value="<?php echo $vfb_settings['spam-points']; ?>" class="small-text" />
     94            <input type="number" min="1" name="vfb-settings[spam-points]" id="vfb-settings-spam-points" value="<?php echo esc_attr( $vfb_settings['spam-points'] ); ?>" class="small-text" />
    9595          </td>
    9696        </tr>
     
    100100          <td>
    101101            <?php $vfb_settings['max-upload-size'] = isset( $vfb_settings['max-upload-size'] ) ? $vfb_settings['max-upload-size'] : '25'; ?>
    102             <input type="number" name="vfb-settings[max-upload-size]" id="vfb-settings-max-upload-size" value="<?php echo $vfb_settings['max-upload-size']; ?>" class="small-text" /> MB
     102            <input type="number" name="vfb-settings[max-upload-size]" id="vfb-settings-max-upload-size" value="<?php echo esc_attr( $vfb_settings['max-upload-size'] ); ?>" class="small-text" /> MB
    103103          </td>
    104104        </tr>
     
    112112
    113113            // Get the site domain and get rid of www.
    114             $sitename = strtolower( $_SERVER['SERVER_NAME'] );
     114            $sitename = strtolower( sanitize_text_field( $_SERVER['SERVER_NAME'] ) );
    115115            if ( substr( $sitename, 0, 4 ) == 'www.' )
    116116              $sitename = substr( $sitename, 4 );
     
    124124            $vfb_settings['sender-mail-header'] = isset( $vfb_settings['sender-mail-header'] ) ? $vfb_settings['sender-mail-header'] : $from_email;
    125125            ?>
    126             <input type="text" name="vfb-settings[sender-mail-header]" id="vfb-settings-sender-mail-header" value="<?php echo $vfb_settings['sender-mail-header']; ?>" class="regular-text" />
     126            <input type="text" name="vfb-settings[sender-mail-header]" id="vfb-settings-sender-mail-header" value="<?php echo esc_attr( $vfb_settings['sender-mail-header'] ); ?>" class="regular-text" />
    127127            <p class="description"><?php _e( 'Some server configurations require an existing email on the domain be used when sending emails.', 'visual-form-builder' ); ?></p>
    128128          </td>
Note: See TracChangeset for help on using the changeset viewer.