Changeset 2259362
- Timestamp:
- 03/11/2020 08:30:00 PM (6 years ago)
- File:
-
- 1 edited
-
contact-form-submissions/trunk/Admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-submissions/trunk/Admin.php
r2252208 r2259362 84 84 <?php foreach ($forms as $post) { 85 85 ?> 86 <?php $selected = ($post->ID == $_GET['wpcf7_contact_form']) ? 'selected' : ''; ?>86 <?php $selected = ($post->ID == esc_attr($_GET['wpcf7_contact_form'])) ? 'selected' : ''; ?> 87 87 <option value="<?php echo $post->ID; ?>" <?php echo $selected; ?>><?php echo $post->post_title; ?></option> 88 88 <?php … … 156 156 // dynamically add cols if the user selects a form 157 157 if (isset($_GET['wpcf7_contact_form']) && !empty($_GET['wpcf7_contact_form'])) { 158 $form_id = $_GET['wpcf7_contact_form'];158 $form_id = esc_attr($_GET['wpcf7_contact_form']); 159 159 160 160 $wpcf7s_columns = $this->get_available_columns($form_id);
Note: See TracChangeset
for help on using the changeset viewer.