Plugin Directory

Changeset 2771286


Ignore:
Timestamp:
08/16/2022 09:09:27 PM (4 years ago)
Author:
cardpaysolutions
Message:

updating version 2.0.18

Location:
fd-payments-for-woo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fd-payments-for-woo/tags/2.0.18/includes/legacy/class-wc-payeezy-gateway.php

    r2771212 r2771286  
    475475
    476476        $fields = wp_parse_args( $fields, apply_filters( 'woocommerce_credit_card_form_fields', $default_fields, $this->id ) );
     477        $allowed_html = array(
     478            'fieldset' => array(
     479                'id' => array(),
     480            ),
     481            'p'        => array(
     482                'class' => array(),
     483            ),
     484            'label'    => array(
     485                'for' => array(),
     486            ),
     487            'span'     => array(
     488                'class' => array(),
     489            ),
     490            'input'    => array(
     491                'id'           => array(),
     492                'class'        => array(),
     493                'type'         => array(),
     494                'maxlength'    => array(),
     495                'autocomplete' => array(),
     496                'placeholder'  => array(),
     497                'name'         => array(),
     498            ),
     499            'div'      => array(
     500                'class' => array(),
     501            ),
     502        );
    477503        ?>
    478504        <fieldset id="<?php echo esc_attr( $this->id ); ?>-cc-form">
     
    480506            <?php
    481507            foreach ( $fields as $field ) {
    482                 echo $field;
     508                echo wp_kses( $field, $allowed_html );
    483509            }
    484510            ?>
  • fd-payments-for-woo/trunk/includes/legacy/class-wc-payeezy-gateway.php

    r2771212 r2771286  
    475475
    476476        $fields = wp_parse_args( $fields, apply_filters( 'woocommerce_credit_card_form_fields', $default_fields, $this->id ) );
     477        $allowed_html = array(
     478            'fieldset' => array(
     479                'id' => array(),
     480            ),
     481            'p'        => array(
     482                'class' => array(),
     483            ),
     484            'label'    => array(
     485                'for' => array(),
     486            ),
     487            'span'     => array(
     488                'class' => array(),
     489            ),
     490            'input'    => array(
     491                'id'           => array(),
     492                'class'        => array(),
     493                'type'         => array(),
     494                'maxlength'    => array(),
     495                'autocomplete' => array(),
     496                'placeholder'  => array(),
     497                'name'         => array(),
     498            ),
     499            'div'      => array(
     500                'class' => array(),
     501            ),
     502        );
    477503        ?>
    478504        <fieldset id="<?php echo esc_attr( $this->id ); ?>-cc-form">
     
    480506            <?php
    481507            foreach ( $fields as $field ) {
    482                 echo $field;
     508                echo wp_kses( $field, $allowed_html );
    483509            }
    484510            ?>
Note: See TracChangeset for help on using the changeset viewer.