Closed (fixed)
Project:
FeedAPI
Version:
6.x-1.x-dev
Component:
Code (general)
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2008 at 20:15 UTC
Updated:
5 Feb 2009 at 00:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
alex_b commentedThis patch includes decoding the title element of the feed itself.
Comment #2
Büke Beyond commentedThank you for the patch!
This is a critical issue. I have encountered it very often.
Comment #3
alex_b commentedCode needs work.
- html_entity_decode() should specify ENT_QUOTES and 'UTF-8' as parameters
- decoding needs to be moved to parsing stage
Comment #4
aron novakPlease test the status now. I committed the changes for both parsers.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
alex_b commentedAron - see #3 - we need to work on this as the proposed patch isn't the right way to go.
If we move the encoding handling to the parsing stage all following stages shouldn't need to worry about html_entity_decode().
Comment #7
alex_b commentedHmm. I'm seeing now that you actually didn't commit this patch but rolled your own. Could you please clarify?
Comment #8
aron novakYeah, i committed the patch what follows the good way.
- html_entity_decode() should specify ENT_QUOTES and 'UTF-8' as parameters
Done. But at parser_simplepie, it's complicated, because under php5 version, no way to define "UTF-8" param.
- decoding needs to be moved to parsing stage
See _parser_common_syndication_title() and _parser_simplepie_title()
Comment #9
Büke Beyond commentedI have been using hook_nodeapi ($op == 'presave') to decode and fix the titles.
I just tried the latest build feedapi.module,v 1.23.2.119.2.29 2008/10/27, and bypassed the hook, with the following feed:
http://www.clipsyndicate.com/rss/feed/1778
The escaped ampersand codes are back on the titles!
So this issue is definitely not fixed. I have to go back to relying on the custom hook. For other users, this may not be as viable.
Comment #10
Büke Beyond commentedComment #11
Büke Beyond commentedComment #12
Büke Beyond commentedUpto that point the title is decoded correctly, as recently fixed in the parser modules.
But, filter_xss on the title re-encodes the ampersands, etc, and reintroduces the problem.
Since the parsers are now responsible for removing all the title html tags and decoding the entities, this line 1019 should now be removed.
Comment #13
aron novakThank you for the debugging, the problem was exactly what you've identified. I chose different way to fix it but i tested and now it's fixed.
Comment #14
toemaz commentedWould there be a possibility to backport this for the 5.x release?
Comment #15
fumbling commentedHi Alex - I'm on FeedAPI 6.x-1.4. To fix this issue, which I'm experiencing as well, should I install the feedapi_decode_html.patch you attach to your 10/2 post, or a more updated one? Wasn't quite sure from the thread here. Thanks either way.
Comment #17
kevinwalsh commentedIndeed, can this solution be backported for 5.x?