X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/00332614f9ceb89931289bcf8f17a52716124483..dd9999dc438a5778a74f4ef966f0fdc06b83cb4c:/app/views/site/edit.html.erb diff --git a/app/views/site/edit.html.erb b/app/views/site/edit.html.erb index 948b1fad5..b29c0f200 100644 --- a/app/views/site/edit.html.erb +++ b/app/views/site/edit.html.erb @@ -65,7 +65,7 @@ zoom='14' if zoom.nil? window.onbeforeunload=function() { if (!changesaved) { - return "<%= t 'site.edit.potlatch_unsaved_changes' %>"; + return '<%= escape_javascript(t('site.edit.potlatch_unsaved_changes')) %>'; } }