From a4095adc59575f0eb84c64eeb5238c61230dd293 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Sat, 18 Jul 2015 10:30:27 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E7=BC=96=E7=A8=8B=E4=BD=9C=E4=B8=9A?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=AD=E4=B8=8D=E6=98=BE=E7=A4=BA=
=?UTF-8?q?=E5=92=8C>?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/helpers/application_helper.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 47a3b59ae..14a508d40 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -2345,6 +2345,6 @@ module ApplicationHelper
#将文本内的/n转换为
def text_format text
- text.gsub("\n","
").html_safe
+ text.gsub("<","<").gsub(">",">").gsub("\n","
").html_safe
end
end
From 3ceb1e92bb85dbf583f7e2e83fd05698f9751307 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Sat, 18 Jul 2015 10:36:14 +0800
Subject: [PATCH 2/7] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=BC=96=E7=A8=8B?=
=?UTF-8?q?=E4=BD=9C=E4=B8=9A=E4=B8=AD=E7=9A=84=E6=B5=8B=E8=AF=95=E6=8C=89?=
=?UTF-8?q?=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../homework_common/_homework_detail_programing_form.html.erb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/homework_common/_homework_detail_programing_form.html.erb b/app/views/homework_common/_homework_detail_programing_form.html.erb
index 008f88138..806768954 100644
--- a/app/views/homework_common/_homework_detail_programing_form.html.erb
+++ b/app/views/homework_common/_homework_detail_programing_form.html.erb
@@ -98,7 +98,7 @@
文件大小:<%= number_to_human_size(file.filesize) %>
<%= link_to( l(:button_delete), attachment_path(file), :data => {:confirm => l(:text_are_you_sure)}, :method => :delete,:class => "f_r re_de") if delete_allowed && file.container_id == @course.id && file.container_type == "Course"%>