X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/78e6578daaa8171c86c67d1046095fcaa1f6e919..2eec60b575b06f5a1a0242d43af3eb294be6c614:/app/views/user/account.rhtml
diff --git a/app/views/user/account.rhtml b/app/views/user/account.rhtml
index 53c355316..c5312686a 100644
--- a/app/views/user/account.rhtml
+++ b/app/views/user/account.rhtml
@@ -34,9 +34,9 @@
<% if @user.home_lat.nil? or @user.home_lon.nil? %>
- <% lon = params['lon'] || '-0.1' %>
- <% lat = params['lat'] || '51.5' %>
- <% zoom = params['zoom'] || '4' %>
+ <% lon = h(params['lon'] || '-0.1') %>
+ <% lat = h(params['lat'] || '51.5') %>
+ <% zoom = h(params['zoom'] || '4') %>
<% else %>
<% marker = true %>
<% mlon = @user.home_lon %>
@@ -46,7 +46,8 @@
<% zoom = '12' %>
<% end %>
-
+<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
+<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
<%= javascript_include_tag 'map.js' %>