summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-01-03 01:21:13 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-01-03 01:21:13 +0000
commitbcf7044104f7398e941ffd4ce0238d56ab6f249e (patch)
tree30c3d2627930c345bb1915b9c7ea5dfc141a807c /app
parent9632aa870a6f3e008c222c382d17a38620d40daf (diff)
downloadredmine-bcf7044104f7398e941ffd4ce0238d56ab6f249e.tar.gz
redmine-bcf7044104f7398e941ffd4ce0238d56ab6f249e.zip
Merge r22584 from trunk to 5.0-stable (#39999).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22586 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/messages_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb
index b41830b85..a4b4478a2 100644
--- a/app/controllers/messages_controller.rb
+++ b/app/controllers/messages_controller.rb
@@ -125,6 +125,11 @@ class MessagesController < ApplicationController
@content = +"#{ll(Setting.default_language, :text_user_wrote_in, {:value => @message.author, :link => "message##{@message.id}"})}\n> "
end
@content << @message.content.to_s.strip.gsub(%r{<pre>(.*?)</pre>}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n> ") + "\n\n"
+
+ respond_to do |format|
+ format.html { render_404 }
+ format.js
+ end
end
def preview