Closed (fixed)
Project:
Sweaver
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2010 at 10:13 UTC
Updated:
21 Sep 2010 at 06:58 UTC
Jump to comment: Most recent file
Comments
Comment #1
karens commentedHere's one possible solution.
Comment #2
jyve commentedHi Karen,
Thanks for the patch. It has been applied to the dev version.
Comment #3
heine commentedRunning check_plain on CSS makes no sense. What are you trying to accomplish?
Comment #4
swentel commentedAs briefly mentioned on IRC, avoid that the hidden field could be injected with XSS exploits. Heine suggests to use a CSS filter which is not in Drupal Core, but cTools has a css include file which seems to have some filtering methods. Will talk to merlin about this.
Comment #5
swentel commentedOk, instead of using check_plain(), ctools_css_filter() is now used from the css.inc file in ctools (see http://drupalcode.org/viewvc/drupal/contributions/modules/ctools/include...)
It's using the default allowed properties and values. So far, everything seems to be working out fine. If we need more default properties & values for the filter, we can use ctools_css_filter_css_data() to override them.
Comment #6
jyve commented