Changeset 2834656
- Timestamp:
- 12/15/2022 07:50:57 PM (3 years ago)
- Location:
- google-apps-login
- Files:
-
- 2 edited
-
tags/3.4.6/core/core_google_apps_login.php (modified) (2 diffs)
-
trunk/core/core_google_apps_login.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
google-apps-login/tags/3.4.6/core/core_google_apps_login.php
r2834617 r2834656 899 899 if ( isset( $_REQUEST['error_setting'] ) && is_array( $_REQUEST['error_setting'] ) 900 900 && 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'] ) ); 906 904 for ( $i = 0; $i < $count; ++$i ) { 907 905 ?> 908 906 <div id="setting-error-settings_<?php echo esc_attr( $i ); ?>" class="error settings-error"> 909 907 <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> 911 909 </p> 912 910 </div> … … 1400 1398 1401 1399 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() ] ) ); 1404 1401 1405 1402 $error_code = array(); -
google-apps-login/trunk/core/core_google_apps_login.php
r2834617 r2834656 899 899 if ( isset( $_REQUEST['error_setting'] ) && is_array( $_REQUEST['error_setting'] ) 900 900 && 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'] ) ); 906 904 for ( $i = 0; $i < $count; ++$i ) { 907 905 ?> 908 906 <div id="setting-error-settings_<?php echo esc_attr( $i ); ?>" class="error settings-error"> 909 907 <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> 911 909 </p> 912 910 </div> … … 1400 1398 1401 1399 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() ] ) ); 1404 1401 1405 1402 $error_code = array();
Note: See TracChangeset
for help on using the changeset viewer.