Closed (fixed)
Project:
Tray
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Mar 2011 at 22:30 UTC
Updated:
6 May 2011 at 12:26 UTC
I have a block from Revisioning that has a link as it's heading:
When this block is put into the tray, I end up with
4 revisions pending" class="tray-item-handle">Open
This happens because tray.module simply concatenates $block->subject into the html without any consideration for the fact that the subject might contain quotes (... does this make it a security issue? I'll leave you to decide that).
Adding an invocation of strip_tags() around $block->subject does the trick for me.
Regards,
Nigel
Comments
Comment #1
rajarju commentedHi,
Iv added strip_tags() added committed to head.
Cheers
Comment #2
nigelcunningham commentedThanks!
Comment #3
GolDRoger commentedCan u explain to me what have u done for correcting this? I have the same problem but with User notifications it reports me * Your Notifications") class="tray-item-handle">Open
and I don't have understood where to put this strip_tags()
thx
Comment #4
GolDRoger commentedFIXED :D
after several try i discovered how to do that. So if anyone is giving strange errors when putting blocks in Tray change this line in:
And the error will be fixed :)