diff options
| author | hukl <contact@smyck.org> | 2009-10-17 13:56:01 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-17 13:56:01 +0200 |
| commit | c36132551b62e7d249948712d6dc47be614c28a5 (patch) | |
| tree | 03d259bc98c11defc0ab36e961f1d95d335833e4 /app/views/nodes | |
| parent | b7c233271b072ba408bfa9e9e8cc6fde7726c558 (diff) | |
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
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/show.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
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 @@ | |||
| 36 | </tr> | 36 | </tr> |
| 37 | <tr> | 37 | <tr> |
| 38 | <td class="description"><strong>Title</strong></td> | 38 | <td class="description"><strong>Title</strong></td> |
| 39 | <td><%= @page.title %></td> | 39 | <td><%= sanitize( @page.title ) %></td> |
| 40 | </tr> | 40 | </tr> |
| 41 | <tr> | 41 | <tr> |
| 42 | <td class="description"><strong>Abstract</strong></td> | 42 | <td class="description"><strong>Abstract</strong></td> |
| 43 | <td><%= @page.abstract %></td> | 43 | <td><%= sanitize( @page.abstract ) %></td> |
| 44 | </tr> | 44 | </tr> |
| 45 | <tr> | 45 | <tr> |
| 46 | <td class="description"><strong>Body</strong></td> | 46 | <td class="description"><strong>Body</strong></td> |
| 47 | <td><%= @page.body %></td> | 47 | <td><%= sanitize( @page.body ) %></td> |
| 48 | </tr> | 48 | </tr> |
| 49 | <tr> | 49 | <tr> |
| 50 | <td></td> | 50 | <td></td> |
