From c36132551b62e7d249948712d6dc47be614c28a5 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 17 Oct 2009 13:56:01 +0200 Subject: added sanitize statements to hopefully all critical templates to protect against cross site scripting. added section to environment.rb listing the whitelisted tags and attributes and examples on how to extend the list --- app/views/nodes/show.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/nodes') diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index 8f56c7cb..99fb264e 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb @@ -36,15 +36,15 @@ Title - <%= @page.title %> + <%= sanitize( @page.title ) %> Abstract - <%= @page.abstract %> + <%= sanitize( @page.abstract ) %> Body - <%= @page.body %> + <%= sanitize( @page.body ) %> -- cgit v1.3