mirror of
https://github.com/redmine/redmine.git
synced 2026-07-07 12:01:33 +02:00
Correctly handle exception messages in macros (#42326).
Patch by Holger Just (user:hjust). git-svn-id: https://svn.redmine.org/redmine/trunk@23519 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -53,7 +53,7 @@ module Redmine
|
||||
send(method_name, obj, args)
|
||||
end
|
||||
rescue => e
|
||||
%|<div class="flash error">#{::I18n.t(:error_can_not_execute_macro_html, :name => name, :error => e.to_s)}</div>|.html_safe
|
||||
%|<div class="flash error">#{::I18n.t(:error_can_not_execute_macro_html, :name => ::ERB::Util.h(name), :error => ::ERB::Util.h(e.to_s))}</div>|.html_safe
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user