Escape remote control failed message
authorTom Hughes <tom@compton.nu>
Sun, 16 Jan 2011 17:12:47 +0000 (17:12 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 16 Jan 2011 17:12:47 +0000 (17:12 +0000)
app/views/site/index.html.erb

index eac166c..0a0b7c1 100644 (file)
@@ -277,7 +277,7 @@ end
     $("linkloader").src = "http://127.0.0.1:8111/load_and_zoom?left=" + extent.left + "&top=" + extent.top + "&right=" + extent.right + "&bottom=" + extent.bottom;
 
     setTimeout(function () {
-      if (!loaded) alert("<%= t('site.index.remote_failed') %>");
+      if (!loaded) alert("<%= escape_javascript(t('site.index.remote_failed')) %>");
     }, 1000);
 
     event.stop();