Commit cfc67c0
Fix: add missing sanitize_text_field() on provider input in login_form_validate_2fa()
`login_form_revalidate_2fa()` already applies sanitize_text_field( wp_unslash() ) to
the same $_REQUEST['provider'] input at line 1703. The parallel validate handler on
line 1563 was missing the sanitize_text_field() wrapper — only wp_unslash() was called.
This brings the two handlers in line with each other and with WordPress-VIP-Go coding
standards (ValidatedSanitizedInput.InputNotSanitized).
The provider value flows into get_provider_for_user() as an array key lookup, so
there is no functional exploit path — this is a defensive coding and PHPCS compliance fix.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3026ec3 commit cfc67c0
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
| 1563 | + | |
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
| |||
0 commit comments