Changeset 2723451
- Timestamp:
- 05/13/2022 04:25:59 PM (4 years ago)
- Location:
- visual-form-builder/trunk/admin
- Files:
-
- 3 edited
-
class-export.php (modified) (1 diff)
-
class-forms-edit.php (modified) (3 diffs)
-
class-page-settings.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
visual-form-builder/trunk/admin/class-export.php
r2722102 r2723451 358 358 359 359 ?> 360 <label for="vfb-export-fields-val-<?php echo $id; ?>">360 <label for="vfb-export-fields-val-<?php echo esc_attr( $id ); ?>"> 361 361 <input 362 name="settings[fields][<?php echo $id; ?>]"362 name="settings[fields][<?php echo esc_attr( $id ); ?>]" 363 363 class="vfb-export-fields-vals" 364 id="vfb-export-fields-val-<?php echo $id; ?>"364 id="vfb-export-fields-val-<?php echo esc_attr( $id ); ?>" 365 365 type="checkbox" 366 366 value="<?php echo esc_attr( $value ); ?>" -
visual-form-builder/trunk/admin/class-forms-edit.php
r2722137 r2723451 73 73 echo '<span class="subtitle">' . sprintf( __( 'Search results for "%s"' , 'visual-form-builder'), esc_html( $_POST['s'] ) ); 74 74 75 $form_nav_selected_id = isset( $_GET['form'] ) ? $_GET['form']: '0';75 $form_nav_selected_id = isset( $_GET['form'] ) ? absint( $_GET['form'] ) : '0'; 76 76 ?> 77 77 </h1> … … 90 90 <form id="vfb-form-items" method="post" action=""> 91 91 <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 ); ?>" /> 93 93 <?php 94 94 wp_nonce_field( 'create-field-' . $form_nav_selected_id ); … … 107 107 <p> 108 108 <?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" /> 110 110 </p> 111 111 </div> <!-- .vfb-accordion-section-content --> -
visual-form-builder/trunk/admin/class-page-settings.php
r2722102 r2723451 36 36 ?> 37 37 <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 ); ?> 39 39 </label> 40 40 <br> … … 57 57 $vfb_settings[ $key ] = isset( $vfb_settings[ $key ] ) ? $vfb_settings[ $key ] : ''; 58 58 ?> 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 ); ?> 61 61 </label> 62 62 <br> … … 92 92 <td> 93 93 <?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" /> 95 95 </td> 96 96 </tr> … … 100 100 <td> 101 101 <?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" /> MB102 <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 103 103 </td> 104 104 </tr> … … 112 112 113 113 // Get the site domain and get rid of www. 114 $sitename = strtolower( $_SERVER['SERVER_NAME']);114 $sitename = strtolower( sanitize_text_field( $_SERVER['SERVER_NAME'] ) ); 115 115 if ( substr( $sitename, 0, 4 ) == 'www.' ) 116 116 $sitename = substr( $sitename, 4 ); … … 124 124 $vfb_settings['sender-mail-header'] = isset( $vfb_settings['sender-mail-header'] ) ? $vfb_settings['sender-mail-header'] : $from_email; 125 125 ?> 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" /> 127 127 <p class="description"><?php _e( 'Some server configurations require an existing email on the domain be used when sending emails.', 'visual-form-builder' ); ?></p> 128 128 </td>
Note: See TracChangeset
for help on using the changeset viewer.