X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1355455f83bd0cbac40ee841d86354b5cb5f0089..019746068992d03c1bbf4f46282a552552ea9e0c:/app/views/site/edit.html.erb?ds=sidebyside diff --git a/app/views/site/edit.html.erb b/app/views/site/edit.html.erb index 948b1fad5..d3258c9cf 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'))}'; } }