diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-17 08:10:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-17 08:10:18 +0000 |
commit | 2b86ef8e28d0e5376197391c29a8fb302f14820f (patch) | |
tree | e5a80fb24158b350507c28021418a19aa7084991 /app/views/documents | |
parent | 3e28dc669b014db811c0de673a090adf54f42bc1 (diff) | |
download | redmine-2b86ef8e28d0e5376197391c29a8fb302f14820f.tar.gz redmine-2b86ef8e28d0e5376197391c29a8fb302f14820f.zip |
various modifications to prevent xss
- validation of names and labels against /^[\w\s\'\-]*$/i
- html entities encoding
git-svn-id: http://redmine.rubyforge.org/svn/trunk@99 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/documents')
-rw-r--r-- | app/views/documents/_document.rhtml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/documents/_document.rhtml b/app/views/documents/_document.rhtml new file mode 100644 index 000000000..55864ee82 --- /dev/null +++ b/app/views/documents/_document.rhtml @@ -0,0 +1,3 @@ +<p><%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %><br />
+<% unless document.description.empty? %><%=h truncate document.description, 250 %><br /><% end %>
+<em><%= format_time(document.created_on) %></em></p>
\ No newline at end of file |