Skip to content

Commit

Permalink
Restrict allowed tags in event tooltip description
Browse files Browse the repository at this point in the history
  • Loading branch information
davec committed Jun 10, 2009
1 parent a2815f4 commit b19bc9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/calendars/_events.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
%dd.location= h event.location
- if event.time
%dd.time= h event.time(:format => '%l:%M %p')
%dd.description= h(event.short_description) || ' '
-# Use a very restricted list of allowable tags
%dd.description= sanitize(event.short_description, :tags => %w(strong em b i sup sub br)) || ' '
%p.footer Click date for more details

0 comments on commit b19bc9f

Please sign in to comment.