Closed (fixed)
Project:
Node Add Title
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2015 at 18:59 UTC
Updated:
14 Nov 2015 at 04:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jasom commentedComment #3
jasom commentedComment #4
ravi.kiran commentedComment #5
ravi.kiran commentedHi @jasom, I have created a patch to allow using of HTML tags in the 'Node Add Title' fields.
I have also updated the description of the fields accordingly. Please review.
Comment #6
ravi.kiran commentedComment #7
laxman.ghavte commentedReviewed! Patch looks good to me.
Comment #9
jcmartinezThank you for the suggested implementation of this request.
The problem I see with the #5 patch is that it doesn't seem safe. If we allow PASS_THROUGH there won't be filtering of malicious code on the title of the node and that is usually user generated content.
In D6 there used to be an XSS vulnerability with drupal_set_title that was corrected for D7 (See: https://www.drupal.org/node/28984). As I understand, adding PASS_THROUGH basically brings the vulnerability back and therefore the content of the title has to be filtered.
I used some of the elements suggested above and added some code filtering in order to make it safer. I hope I didn't over do it. If I did, please suggest a new patch.
This has been added to the dev version.
Comment #10
jcmartinezComment #11
jasom commented@jcmartinez @ravi.kiran
I found this "PASS_THROUGH" in current D7 core when I was trying to find out how D7 allows
<em>to pass through and then I made a custom module, means I don't use "Node Add Tittle" anymore. Ravi.kiran, your code inspired me, tnx.