Related Posts: decode ellipsis at the end of a long excerpt#1282
Related Posts: decode ellipsis at the end of a long excerpt#1282xyu merged 3 commits intoAutomattic:masterfrom
Conversation
|
The only thing I'm concerned here is just decoding like this may end up opening up some XSS vulnerabilities. I need to think about this a bit. Sent from my iPhone
|
Some niceties / UI tweaks for related posts: * Limit excerpts to 5 lines max (resolves Automattic#1249) * Use UTF-8 ellipsis to prevent double encoding issue (Automattic#1282) * Make entire excerpt clickable
|
@xyu bd1241da924f791f90227bb74191cfc765f05e6f works nicely the ellipsis at the end of the excerpt, but the problem remains for other special characters in the excerpt: My Pull Request fixes the problem, but as you mentioned:
Can you think of another solution? Reported here: |
|
@xyu Do you think we could merge this in the next release? |
fa0ba20 started calling `html_entity_decode()` on the excerpt so we should escape it when outputing to avoid potential XSS.
|
I'm probably doing it wrong but... I just made a PR for this change at: jeherve#1, basically we should escape on output now that we are calling |
Related Posts: Make sure we escape the excerpt
|
@xyu That looks good to me! |
…psis Related Posts: decode ellipsis at the end of a long excerpt

Reported here:
https://wordpress.org/support/topic/related-posts-hellip-typo-on-hover?replies=3
@xyu My patch works, but I wonder if there would be a better way of doing it, and if my patch could cause things to break, somehow?