Closed (fixed)
Project:
Clean Feeds
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
14 Nov 2007 at 11:03 UTC
Updated:
23 Mar 2022 at 15:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedAny news on this?
Comment #2
kbahey commentedThere is no such setting, and I have never seen such a case. The module should clean all HTML tags.
If you have a patch that fixes this for your case, I will include it.
Comment #3
Anonymous (not verified) commentedThe feeds that go through Clean Feeds are definitely much "cleaner" than the standard ones, but it does not clean up things such as links or HTML code for inverted commas and the like - and it does not seem to me that this is a issue that would be something specific relating to my site / sites.
Unfortunately, my PHP skills (at this stage) are not good enough to contribute a patch
Comment #4
kiran_lakhotia commentedHi,
The cleanfeeds module can indeed appear not to clean correctly. The problem of not all HTML being cleaned lies in the order of execution of the _nodeapi's, in particular the cleanfeeds module. The cleanfeeds_nodeapi function should be called last, to ensure all HTML is cleaned properly (if this is desired behaviour).
For example, increasing the weight in the system table for this module ensures it will be called after any theme code etc. has been added via the event module.
I have controlled the weight directly in the DB to resolve this issue, my question is: where is the appropriate place to set the weights for modules?
Comment #5
kbahey commented@kiran_lakhotia
There are two ways of doing this:
1. Download this http://drupal.org/project/moduleweight and install it and assign cleanfeed a high number.
2. Create a patch that goes in the clean feeds .install and sets the weight to a very high number. This would be an update_x and in _install as well.
Let me know if 1 fixes it for you, or you want to submit a patch for 2.
Comment #6
kiran_lakhotia commentedHi kbahey
I think 2) is the better option. I'm very new to drupal, so please have a look at the cleanfeeds.install file and see if this is ok.
Thanks,
Kiran
Comment #7
kbahey commentedGood effort.
I made a few minor changes in the code.
Can you please test it?
Can others please test it too?
Comment #8
kiran_lakhotia commentedHi,
I have tested the install and it works. However, I have added an "uninstall hook" too. This is just for completeness sake to remove the cleanfeeds from the system table and force the install file to be run when re-installing. Please have a look at attached file.
Also I have added a weight option to the admin settings, it's a simple text box. See code below. If you think this is useful then I'm happy to create a patch for this.
and added the validation function
Comment #9
kiran_lakhotia commentedPS: the update should probably be in a _submit hook, but you get the general idea.
Kiran
Comment #10
kbahey commentedThe uninstall is not needed. When the module is uninstalled, the system table will be adjusted by Drupal itself.
The settings is overly complex and the moduleweight module does that already. No need to have overkill features.
I committed the .install for 1.1.
Thank you
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.