Bug found when show_record_tree is enabled with FCKEditor
Posted: Mon Apr 12, 2010 11:36 am
I found a bug when show_record_tree is enabled with FCKEditor in use. The problem is $record->toJS() just outputs whatever stored in the database without using the html entities for special characters like "<", "<script", "</script>", etc. When the "</script>" tag is included in the data, the "Code Barf" happens like the following screenshot:
The bug exists in RecordNavMenu.html at line 176:
Can some body fix this problem so I don't have disable the show_record_tree functionality? Thanks.
The bug exists in RecordNavMenu.html at line 176:
- Code: Select all
document.recordIndex['{$record->getId()}'] = {$record->toJS()};
Can some body fix this problem so I don't have disable the show_record_tree functionality? Thanks.