Skip to content

Commit

Permalink
Accept auth code to be letters
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafauysal committed Feb 23, 2025
1 parent 1f418ae commit 17355d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


if ( isset( $_POST['yandex-metrica-authorize'] ) ) {
$auth_code = intval( $_POST['auth-code'] );
$auth_code = sanitize_text_field( $_POST['auth-code'] );
if ( $this->authorize( esc_attr( $auth_code ) ) ) {
echo '<div class="updated"><p>' . __( 'Successfully connected to Yandex Server', 'yandex-metrica' ) . '</p></div>';
} else {
Expand Down

0 comments on commit 17355d6

Please sign in to comment.