From e3861f6b9967152d64a37ec62c2c21e409ed3d0d Mon Sep 17 00:00:00 2001 From: Gabriel Sobrinho Date: Wed, 30 Dec 2009 20:59:19 -0200 Subject: [PATCH] Add RailsXSS protection plugin Read about RailsXSS and HAML here: http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#rails_xss_protection --- .gitmodules | 3 +++ app/views/meetings/index.html.haml | 4 ++-- vendor/plugins/rails_xss | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 vendor/plugins/rails_xss diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..3a0c05c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vendor/plugins/rails_xss"] + path = vendor/plugins/rails_xss + url = git://github.com/NZKoz/rails_xss.git diff --git a/app/views/meetings/index.html.haml b/app/views/meetings/index.html.haml index e32a1c7..ecc53b5 100644 --- a/app/views/meetings/index.html.haml +++ b/app/views/meetings/index.html.haml @@ -12,7 +12,7 @@ %h3 Conteúdo %p - = [link_to_function('Vídeo'), link_to_function('Slides'), link_to_function('Código fonte')].to_sentence + != [link_to_function('Vídeo'), link_to_function('Slides'), link_to_function('Código fonte')].to_sentence .box %h2 Apresentações anteriores @@ -32,5 +32,5 @@ o HTML e CSS e o InheritedResources para os controllers "scaffold". %p - = [link_to_function('Vídeo'), link_to_function('Slides'), link_to_function('Código fonte')].to_sentence + != [link_to_function('Vídeo'), link_to_function('Slides'), link_to_function('Código fonte')].to_sentence diff --git a/vendor/plugins/rails_xss b/vendor/plugins/rails_xss new file mode 160000 index 0000000..41d244b --- /dev/null +++ b/vendor/plugins/rails_xss @@ -0,0 +1 @@ +Subproject commit 41d244ba77ba08fe47aff3f2e37e65d4d6188f62