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

spouts\rss: Provide unencoded link #1188

Merged
merged 1 commit into from
May 4, 2020
Merged

spouts\rss: Provide unencoded link #1188

merged 1 commit into from
May 4, 2020

Conversation

jtojnar
Copy link
Member

@jtojnar jtojnar commented May 3, 2020

Fixes: #1185
Replaces: #1187

SimplePie returns links escaped with htmlspecialchars but we might want to use the URL to fetch additional data so we need to unescape it first.
ContentLoader will escape it again before saving it to database.

SimplePie returns links escaped with htmlspecialchars but we might want to use the URL to fetch additional data so we need to unescape it first.
ContentLoader will escape it again before saving it to database.

I went through all the spouts looking for returned values that are used as URLs, Reddit does it too.

Ideally, everything would return raw data and we would escape it when displayed but that would be a pain since we would likely have to convert the already stored data.
@jtojnar jtojnar marked this pull request as ready for review May 4, 2020 01:08
@jtojnar jtojnar added the bug label May 4, 2020
@jtojnar jtojnar added this to the 2.19 milestone May 4, 2020
@jtojnar jtojnar merged commit c827d8d into master May 4, 2020
@jtojnar jtojnar deleted the noencode-links-2 branch May 4, 2020 01:24
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.

FullText RSS issue with php links containing arguments
1 participant