-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【確認待ち】[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました #1165
Open
mtdkei
wants to merge
9
commits into
master
Choose a base branch
from
fix/cta/iframe
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mtdkei
changed the title
Add veu_cta_block_safe_kses_post
[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました
Feb 3, 2025
mtdkei
changed the title
[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました
【調整中】[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました
Feb 3, 2025
This reverts commit a17e9e7.
mtdkei
changed the title
【調整中】[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました
【確認待ち】[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました
Feb 3, 2025
mtdkei
requested review from
mthaichi,
kurudrive,
sysbird,
goutetsuguma,
akito-38,
drill-lancer and
MasayaMORIMOTO
February 3, 2025 06:39
kurudrive
requested changes
Feb 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtdkei ありがとうございますー。
このエスケープ処理はCTAブロックだけじゃなくて本当は直接挿入やCTAウィジェットにも適用しないといけない処理なので、block/index.phpじゃなくて、Vk_Call_To_Action クラスの中に書いて呼び出す感じの方が、ウィジェットとかに適用する時とかも一元管理できるから良いと思いますー ( ̄人 ̄)
で、この処理は 引数に渡されたものが適切にエスケープされて返ってくるかのテストは書いて欲しいですー ( ̄人 ̄)
kurudrive
changed the title
【確認待ち】[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました
【要調整】[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました
Feb 3, 2025
@kurudrive |
mtdkei
changed the title
【要調整】[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました
【確認待ち】[ CTAブロック ] ホワイトリストのURLのみiframeがエスケープされてしまうのを修正しました
Feb 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
チケットへのリンク / 変更の理由(元のissueがあればリンクを貼り付ければOK)
#1164
どういう変更をしたか?
wp_ksesでiframeがエスケープされていたため、特定のiframe以外は除外するようにしました。
ビジュアル埋め込みブロックと同じく「Google(map/calendar/forms)」「Youtube」「OpenStreetMap」「Vimeo」の許可をしています。
ソースコードについて
デザイン・UI
プログラムの変更の場合
テストを書かないのは普通ではありません。書けるテストは極力書くようにしてください。
書いていない場合は書かない理由を記載してください。
→ 修正箇所が見当たらなかったのでスキップしています。必要に応じて対応いたします。
その他
変更内容について何を確認したか、どういう方法で確認をしたかなど
フッター上部にiframeが出力されていることを確認。
確認URL
( どこかのデモサイトかテストサーバーにデプロイ済みなどで確認できる場合はそのURL )
レビュワーの確認方法・確認する内容など
実装者と同じ確認を行ってください。また、コードの確認もお願いいたします。
レビュワーに回す前の確認事項
レビュワー向け
確認して変更が反映されていない場合の確認事項