Plugin Directory

Changeset 2617885


Ignore:
Timestamp:
10/21/2021 03:41:50 PM (4 years ago)
Author:
mmuro
Message:

Escape additional values

Location:
visual-form-builder/trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • visual-form-builder/trunk/admin/class-ajax.php

    r1812215 r2617885  
    6767        $form_id    = absint( $data['form_id'] );
    6868        $field_key  = sanitize_title( $_POST['field_type'] );
    69         $field_name = esc_html( $_POST['field_type'] );
     69        $field_name = sanitize_text_field( $_POST['field_type'] );
    7070        $field_type = strtolower( sanitize_title( $_POST['field_type'] ) );
    7171
  • visual-form-builder/trunk/admin/class-entries-detail.php

    r2617877 r2617885  
    2929?>
    3030            <form id="entry-edit" method="post" action="">
    31             <h3><span><?php echo stripslashes( $entry->form_title ); ?> : <?php echo __( 'Entry' , 'visual-form-builder'); ?> # <?php echo $entry->entries_id; ?></span></h3>
     31            <h3><span><?php echo stripslashes( $entry->form_title ); ?> : <?php _e( 'Entry' , 'visual-form-builder'); ?> # <?php echo $entry->entries_id; ?></span></h3>
    3232            <div id="vfb-poststuff" class="metabox-holder has-right-sidebar">
    3333                <div id="side-info-column" class="inner-sidebar">
     
    4040                                    <div id="misc-publishing-actions">
    4141                                        <div class="misc-pub-section">
    42                                             <span><strong><?php echo  __( 'Form Title' , 'visual-form-builder'); ?>: </strong><?php echo stripslashes( $entry->form_title ); ?></span>
     42                                            <span><strong><?php _e( 'Form Title' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( $entry->form_title ); ?></span>
    4343                                        </div>
    4444                                        <div class="misc-pub-section">
    45                                             <span><strong><?php echo  __( 'Date Submitted' , 'visual-form-builder'); ?>: </strong><?php echo date( "$date_format $time_format", strtotime( $entry->date_submitted ) ); ?></span>
     45                                            <span><strong><?php _e( 'Date Submitted' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( date( "$date_format $time_format", strtotime( $entry->date_submitted ) ) ); ?></span>
    4646                                        </div>
    4747                                        <div class="misc-pub-section">
    48                                             <span><strong><?php echo __( 'IP Address' , 'visual-form-builder'); ?>: </strong><?php echo $entry->ip_address; ?></span>
     48                                            <span><strong><?php _e( 'IP Address' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( $entry->ip_address ); ?></span>
    4949                                        </div>
    5050                                        <div class="misc-pub-section">
    51                                             <span><strong><?php echo __( 'Email Subject' , 'visual-form-builder'); ?>: </strong><?php echo stripslashes( $entry->subject ); ?></span>
     51                                            <span><strong><?php _e( 'Email Subject' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( $entry->subject ); ?></span>
    5252                                        </div>
    5353                                        <div class="misc-pub-section">
    54                                             <span><strong><?php echo __( 'Sender Name' , 'visual-form-builder'); ?>: </strong><?php echo stripslashes( $entry->sender_name ); ?></span>
     54                                            <span><strong><?php _e( 'Sender Name' , 'visual-form-builder'); ?>: </strong><?php echo esc_html( $entry->sender_name ); ?></span>
    5555                                        </div>
    5656                                        <div class="misc-pub-section">
    57                                             <span><strong><?php echo __( 'Sender Email' , 'visual-form-builder'); ?>: </strong><a href="mailto:<?php echo stripslashes( $entry->sender_email ); ?>"><?php echo stripslashes( $entry->sender_email ); ?></a></span>
     57                                            <span><strong><?php _e( 'Sender Email' , 'visual-form-builder'); ?>: </strong><a href="mailto:<?php echo esc_html( $entry->sender_email ); ?>"><?php echo esc_html( $entry->sender_email ); ?></a></span>
    5858                                        </div>
    5959                                        <div class="misc-pub-section">
    60                                             <span><strong><?php echo __( 'Emailed To' , 'visual-form-builder'); ?>: </strong><?php echo preg_replace('/\b([A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4})\b/i', '<a href="mailto:$1">$1</a>', implode( ',', unserialize( stripslashes( $entry->emails_to ) ) ) ); ?></span>
     60                                            <span><strong><?php _e( 'Emailed To' , 'visual-form-builder'); ?>: </strong><?php echo preg_replace('/\b([A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4})\b/i', '<a href="mailto:$1">$1</a>', esc_html( implode( ',', unserialize( stripslashes( $entry->emails_to ) ) ) ) ); ?></span>
    6161                                        </div>
    6262                                        <div class="clear"></div>
  • visual-form-builder/trunk/admin/class-media-button.php

    r1812215 r2617885  
    3737        );
    3838    ?>
    39         <a href="<?php echo esc_url( $button_url ); ?>" class="button add_media thickbox" title="<?php _e( 'Add Visual Form Builder form', 'visual-form-builder' ); ?>">
     39        <a href="<?php echo esc_url( $button_url ); ?>" class="button add_media thickbox" title="<?php esc_attr_e( 'Add Visual Form Builder form', 'visual-form-builder' ); ?>">
    4040            <span class="dashicons dashicons-feedback" style="color:#888; display: inline-block; width: 18px; height: 18px; vertical-align: text-top; margin: 0 4px 0 0;"></span>
    4141            <?php _e( 'Add Form', 'visual-form-builder' ); ?>
     
    7979                <select id="vfb_forms" name="vfb_forms">
    8080                    <?php foreach( $forms as $form ) : ?>
    81                         <option value="<?php echo $form->form_id; ?>"><?php echo $form->form_title; ?></option>
     81                        <option value="<?php echo esc_attr( $form->form_id ); ?>"><?php echo $form->form_title; ?></option>
    8282                    <?php endforeach; ?>
    8383                </select>
Note: See TracChangeset for help on using the changeset viewer.