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/news/_news.rhtml | |
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/news/_news.rhtml')
-rw-r--r-- | app/views/news/_news.rhtml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/news/_news.rhtml b/app/views/news/_news.rhtml new file mode 100644 index 000000000..75a80d634 --- /dev/null +++ b/app/views/news/_news.rhtml @@ -0,0 +1,4 @@ +<p><%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %><br />
+<% unless news.summary.empty? %><%=h news.summary %><br /><% end %>
+<em><%= news.author.name %>, <%= format_time(news.created_on) %></em><br />
+<%= news.comments_count %> <%= lwr(:label_comment, news.comments_count).downcase %><br /></p>
|