From a691508205e21c1ef780350338b030dc6c3fba1d Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 1 Jul 2020 18:05:59 +0800 Subject: [PATCH] fix security problem --- app/views/announcements/index.html.erb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/views/announcements/index.html.erb b/app/views/announcements/index.html.erb index f00b115..1afe306 100644 --- a/app/views/announcements/index.html.erb +++ b/app/views/announcements/index.html.erb @@ -68,13 +68,16 @@
<%= select_tag('category',options_for_select(all_cat.concat(cats.map{|v| [v.title,v.id.to_s]}),:selected => params['category'].to_s),:id=>"category_select_box",:prompt => t('announcement.select_prompt')) %> " placeholder="<%= t('announcement.keywords') %>"> -
- " placeholder="<%= t('announcement.stime') %>" data-format="yyyy/mm/dd"> -
- ~ -
- " placeholder="<%= t('announcement.etime') %>" data-format="yyyy/mm/dd"> +
+
+ " placeholder="<%= t('announcement.stime') %>" data-format="yyyy/mm/dd"> +
+ ~ +
+ " placeholder="<%= t('announcement.etime') %>" data-format="yyyy/mm/dd"> +
+