Details
-
Type:
Bug
-
Status:
Committed
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 0.9
-
Fix Version/s: 1.2
-
Component/s: None
-
Labels:None
-
Environment:Linux with Firefox 3.5.1
-
Request Controller:Please Select
-
External Supervisor:Please select
-
Executing Programmer:Please select
Description
Weceem assumes that projects have grails.views.default.codec="none", but in some cases this is not a good option for security reasons. If projects define grails.views.default.codec="html" for instance, then the rich editor and code editor don't display their content correctly (html characters are escaped).
Here is a patch based on revision 58895 of trunk. It changes the rich editor and the code editor so that their content is inserted using <%= %> rather than ${ }. This way no matter what codec a project defines, the editors will never receive escaped html. In theory this could have been done by placing <%@page defaultCodec="none" %> in the gsp, but I couldn't get this to work (see http://stackoverflow.com/questions/1337464/overriding-grails-views-default-codechtml-config-back-to-none).
As far as security is concerned, I don't think this changes much for weceem, since it defined a default codec of "none" anyway. Also, there are probably other places I didn't find where this could be changed.