Plugin Directory

Changeset 2834656


Ignore:
Timestamp:
12/15/2022 07:50:57 PM (3 years ago)
Author:
chrisakelley
Message:

tagging 3.4.6

Location:
google-apps-login
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • google-apps-login/tags/3.4.6/core/core_google_apps_login.php

    r2834617 r2834656  
    899899        if ( isset( $_REQUEST['error_setting'] ) && is_array( $_REQUEST['error_setting'] )
    900900            && isset( $_REQUEST['error_code'] ) && is_array( $_REQUEST['error_code'] ) ) {
    901             $error_code    = wp_unslash( $_REQUEST['error_code'] ); // WPCS: XSS ok array sanitized below when echo'd
    902             $error_setting = wp_unslash( $_REQUEST['error_setting'] ); // WPCS: XSS ok  array sanitized below when echo'd
    903 
    904             if ( count( $error_code ) > 0 && count( $error_code ) === count( $error_setting ) ) {
    905                 $count = count( $error_code );
     901
     902            if ( count( wp_unslash( $_REQUEST['error_code'] ) ) > 0 && count( wp_unslash( $_REQUEST['error_code'] ) ) === count( wp_unslash( $_REQUEST['error_setting'] ) ) ) {
     903                $count = count( wp_unslash( $_REQUEST['error_code'] ) );
    906904                for ( $i = 0; $i < $count; ++$i ) {
    907905                    ?>
    908906                <div id="setting-error-settings_<?php echo esc_attr( $i ); ?>" class="error settings-error">
    909907                <p>
    910                 <strong><?php echo esc_html( htmlentities2( $this->get_error_string( $error_setting[ $i ] . '|' . $error_code[ $i ] ) ) ); ?></strong>
     908                <strong><?php echo esc_html( htmlentities2( $this->get_error_string( wp_unslash( $_REQUEST['error_setting'][ $i ] ) . '|' . wp_unslash( $_REQUEST['error_code'][ $i ] ) ) ) ); ?></strong>
    911909                </p>
    912910                </div>
     
    14001398
    14011399        if ( isset( $_POST[ $this->get_options_name() ] ) && is_array( wp_unslash( $_POST[ $this->get_options_name() ] ) ) ) { // WPCS: XSS ok array sanitized when set in ga_options_validate
    1402             $inoptions  = wp_unslash( $_POST[ $this->get_options_name() ] ) ; // WPCS: XSS ok array sanitized when set in ga_options_validate
    1403             $outoptions = $this->ga_options_validate( $inoptions );
     1400            $outoptions = $this->ga_options_validate( wp_unslash( $_POST[ $this->get_options_name() ] ) );
    14041401
    14051402            $error_code    = array();
  • google-apps-login/trunk/core/core_google_apps_login.php

    r2834617 r2834656  
    899899        if ( isset( $_REQUEST['error_setting'] ) && is_array( $_REQUEST['error_setting'] )
    900900            && isset( $_REQUEST['error_code'] ) && is_array( $_REQUEST['error_code'] ) ) {
    901             $error_code    = wp_unslash( $_REQUEST['error_code'] ); // WPCS: XSS ok array sanitized below when echo'd
    902             $error_setting = wp_unslash( $_REQUEST['error_setting'] ); // WPCS: XSS ok  array sanitized below when echo'd
    903 
    904             if ( count( $error_code ) > 0 && count( $error_code ) === count( $error_setting ) ) {
    905                 $count = count( $error_code );
     901
     902            if ( count( wp_unslash( $_REQUEST['error_code'] ) ) > 0 && count( wp_unslash( $_REQUEST['error_code'] ) ) === count( wp_unslash( $_REQUEST['error_setting'] ) ) ) {
     903                $count = count( wp_unslash( $_REQUEST['error_code'] ) );
    906904                for ( $i = 0; $i < $count; ++$i ) {
    907905                    ?>
    908906                <div id="setting-error-settings_<?php echo esc_attr( $i ); ?>" class="error settings-error">
    909907                <p>
    910                 <strong><?php echo esc_html( htmlentities2( $this->get_error_string( $error_setting[ $i ] . '|' . $error_code[ $i ] ) ) ); ?></strong>
     908                <strong><?php echo esc_html( htmlentities2( $this->get_error_string( wp_unslash( $_REQUEST['error_setting'][ $i ] ) . '|' . wp_unslash( $_REQUEST['error_code'][ $i ] ) ) ) ); ?></strong>
    911909                </p>
    912910                </div>
     
    14001398
    14011399        if ( isset( $_POST[ $this->get_options_name() ] ) && is_array( wp_unslash( $_POST[ $this->get_options_name() ] ) ) ) { // WPCS: XSS ok array sanitized when set in ga_options_validate
    1402             $inoptions  = wp_unslash( $_POST[ $this->get_options_name() ] ) ; // WPCS: XSS ok array sanitized when set in ga_options_validate
    1403             $outoptions = $this->ga_options_validate( $inoptions );
     1400            $outoptions = $this->ga_options_validate( wp_unslash( $_POST[ $this->get_options_name() ] ) );
    14041401
    14051402            $error_code    = array();
Note: See TracChangeset for help on using the changeset viewer.