Escape user-supplied JavaScript. Fixes http://lists.openstreetmap.org/pipermail/talk/2009-September/042846.ht
This commit is contained in:
parent
1355455f83
commit
0197460689
1 changed files with 1 additions and 1 deletions
|
@ -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'))}';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue