fix(totp): otpauth link in QR code URL#784
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
kasparsd
left a comment
There was a problem hiding this comment.
Thank you! Not sure how this got missed. I see that other instances have the protocol added correctly.
|
I was training my agent (it reviews plugins and scans them for security issues and bugs - I am doing this for WPVIP), and it found this issue 🙂 |
|
@sjinks Nice! Does that mean that WPVIP is now running the latest revision of the plugin? |
|
Automattic/vip-go-mu-plugins#6742 0.14.2 runs in staging environments. Tomorrow it will be in production. |
What?
The TOTP URL inside the
#two-factor-qr-codeparagraph in the User Profile is not rendered becauseesc_url()returns an empty string if it encounters an unknown/not allowed protocol.Fixes: #783
Why?
esc_url()returns an empty string if it encounters an unknown/not allowed protocol.otpauth:is not among the allowed ones.How?
Pass
array( 'otpauth' )toesc_url().Testing Instructions
Screenshots or screencast
Changelog Entry