Skip to content
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

Fix structured data parsing from links choking on bad data #17403

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Jan 31, 2022

  • Fix og:url meta tag being prioritized over canonical link tag
  • Fix structured data parsing choking on commented-out CDATA declarations
  • Fix HTML entities in title, description, provider_name, author_name
  • Change structured data parsing to attempt every JSON-LD script tag

@Gargron Gargron added the bug Something isn't working label Jan 31, 2022
@Gargron Gargron force-pushed the fix-link-details-parsing branch from db67d24 to 4677bb8 Compare January 31, 2022 18:29
- Fix og:url meta tag being prioritized over canonical link tag
- Fix structured data parsing choking on commented-out CDATA declarations
- Fix HTML entities in title, description, provider_name, author_name
- Change structured data parsing to attempt every JSON-LD script tag
@Gargron Gargron force-pushed the fix-link-details-parsing branch from 4677bb8 to fbba122 Compare January 31, 2022 19:02
@Gargron Gargron requested a review from ClearlyClaire February 6, 2022 06:40
app/lib/link_details_extractor.rb Outdated Show resolved Hide resolved
@Gargron Gargron merged commit f1f6ddd into main Feb 7, 2022
@Gargron Gargron deleted the fix-link-details-parsing branch February 7, 2022 17:16
jesseplusplus pushed a commit to jesseplusplus/decodon that referenced this pull request Feb 10, 2022
…17403)

* Fix structured data parsing from links choking on bad data

- Fix og:url meta tag being prioritized over canonical link tag
- Fix structured data parsing choking on commented-out CDATA declarations
- Fix HTML entities in title, description, provider_name, author_name
- Change structured data parsing to attempt every JSON-LD script tag

* Remove unnecessary slash escapes from CDATA regex pattern
stsecurity pushed a commit to stsecurity/mastodon that referenced this pull request May 2, 2022
…17403)

* Fix structured data parsing from links choking on bad data

- Fix og:url meta tag being prioritized over canonical link tag
- Fix structured data parsing choking on commented-out CDATA declarations
- Fix HTML entities in title, description, provider_name, author_name
- Change structured data parsing to attempt every JSON-LD script tag

* Remove unnecessary slash escapes from CDATA regex pattern
stsecurity pushed a commit to stsecurity/mastodon that referenced this pull request Jul 10, 2023
…17403)

* Fix structured data parsing from links choking on bad data

- Fix og:url meta tag being prioritized over canonical link tag
- Fix structured data parsing choking on commented-out CDATA declarations
- Fix HTML entities in title, description, provider_name, author_name
- Change structured data parsing to attempt every JSON-LD script tag

* Remove unnecessary slash escapes from CDATA regex pattern
stsecurity pushed a commit to stsecurity/mastodon that referenced this pull request Oct 17, 2023
…17403)

* Fix structured data parsing from links choking on bad data

- Fix og:url meta tag being prioritized over canonical link tag
- Fix structured data parsing choking on commented-out CDATA declarations
- Fix HTML entities in title, description, provider_name, author_name
- Change structured data parsing to attempt every JSON-LD script tag

* Remove unnecessary slash escapes from CDATA regex pattern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants