Skip to content

Add escaping on meta properties for open graph #25655

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

Conversation

NathMorgan
Copy link
Member

Description (*)

Added block html attribute escaping on OpenGraph meta description / title due to content bleeding from double quotes

Fixed Issues (if relevant)

  1. Magento OpenGraph meta description / title content bleeding #25654: Magento OpenGraph meta description / title content bleeding

Manual testing scenarios (*)

  1. Create a product in the admin
  2. Within the product description / title create a sample description that contains double quotes "

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Fixes issue where double quotes can bleed though the html attribute
@NathMorgan NathMorgan requested a review from akaplya as a code owner November 19, 2019 15:16
@m2-assistant
Copy link

m2-assistant bot commented Nov 19, 2019

Hi @NathMorgan. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@magento-engcom-team
Copy link
Contributor

Hi @lbajsarowicz, thank you for the review.
ENGCOM-6300 has been created to process this Pull Request
✳️ @lbajsarowicz, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@engcom-Alfa engcom-Alfa self-assigned this Nov 20, 2019
@engcom-Alfa engcom-Alfa added the Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests label Nov 20, 2019
@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

@abrarpathan19
Copy link
Contributor

@magento give me 2.3-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @abrarpathan19. Thank you for your request. I'm working on Magento 2.3-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @abrarpathan19, here is your Magento instance.
Admin access: https://i-25655-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.

@engcom-Foxtrot engcom-Foxtrot self-assigned this Nov 20, 2019
@engcom-Foxtrot engcom-Foxtrot added Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests and removed Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests labels Nov 20, 2019
@engcom-Foxtrot
Copy link
Contributor

@NathMorgan please cover changes with functional test.

@NathMorgan
Copy link
Member Author

@engcom-Foxtrot As this is a frontend change by adding escaping what functional test do you wish for me to provide?

Copy link
Member

@rodrigowebjump rodrigowebjump left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @NathMorgan
Thanks for your contribution

@magento-engcom-team
Copy link
Contributor

Hi @rodrigowebjump, thank you for the review.
ENGCOM-6300 has been created to process this Pull Request

@NathMorgan
Copy link
Member Author

Any information on what functional test you wish for this change? See #25655 (comment)

@VladimirZaets VladimirZaets added Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests and removed Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests labels Dec 3, 2019
Copy link
Contributor

@VladimirZaets VladimirZaets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @NathMorgan. Thanks for collaboration. I don't think that we should cover these changes

@magento-engcom-team
Copy link
Contributor

Hi @VladimirZaets, thank you for the review.
ENGCOM-6300 has been created to process this Pull Request

@engcom-Alfa
Copy link
Contributor

✔️ QA Passed

@m2-assistant
Copy link

m2-assistant bot commented Dec 9, 2019

Hi @NathMorgan, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@sdzhepa sdzhepa mentioned this pull request May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants