summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 6a7812e4a..9fb6a56c2 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1426,12 +1426,12 @@ module ApplicationHelper
end
def back_url_hidden_field_tag
- url = back_url
+ url = validate_back_url(back_url)
hidden_field_tag('back_url', url, :id => nil) unless url.blank?
end
def cancel_button_tag(fallback_url)
- url = back_url.blank? ? fallback_url : back_url
+ url = validate_back_url(back_url) || fallback_url
link_to l(:button_cancel), url
end